void Mask (Texture Texture, Rect Rect, MaskMode Mode, BackgroundRepeat Repeat, float Rotation, FilterMode Sampling)

Parameters

NameTypeDescription
Texture Texture Mask image. Must be non-null when used by a layer.
Rect Rect Image position and size in drawing coordinates. Must have finite, positive dimensions.
Mode = 1 MaskMode Whether image alpha or luminance controls layer visibility. Defaults to alpha.
Repeat = 3 BackgroundRepeat Image repetition outside the mask rectangle. Defaults to no repetition.
Rotation = 0 float Rotation around the image center in degrees. Must be finite.
Sampling = 20 FilterMode Texture sampling filter. Defaults to bilinear sampling.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.