Module MaskEffect2DEnums

MaskEffect2D.Stretch

Defines the stretch modes.

None

Does not stretch the mask.

Fill

Stretches the mask to fill the node.

Uniform

Stretches the mask using uniform scaling to fill the node in either vertical or horizontal direction, whichever requires smaller scale.

UniformToFill

Stretches the mask using uniform scaling to fill the node in either vertical or horizontal direction, whichever requires larger scale.

Repeat

Does not stretch the mask, and allows the mask to repeat outside of its area based on the mask texture wrap mode.

Count

The number of stretch modes.

MaskEffect2D.VerticalAlignment

Defines the vertical alignment modes.

Bottom

Aligns the bottom edge of the mask with the bottom edge of the node.

Top

Aligns the top edge of the mask with the top edge of the node.

Center

Centers the mask vertically in the node.

Stretch

Stretches the mask vertically to fit the node from the top edge to the bottom edge.

Count

The number of vertical alignment modes.

MaskEffect2D.HorizontalAlignment

Defines the horizontal alignment modes.

Left

Aligns the left edge of the mask with the left edge of the node.

Right

Aligns the right edge of the mask with the right edge of the node.

Center

Centers the mask horizontally in the node.

Stretch

Stretches the mask horizontally to fit the node from the left edge to the right edge.

Count

The number of horizontal alignment modes.

MaskEffect2D.Channel

Defines the mask texture channels that you can use as the mask.

Alpha

Uses the alpha channel as the mask.

Red

Uses the red color channel as the mask.

Green

Uses the green color channel as the mask.

Blue

Uses the blue color channel as the mask.

Luminance

Uses the luminance calculated from the red, green, and blue color channels as the mask.