# Sandbox.Painter.Mask

An image mask positioned in drawing coordinates. Applied to the completed layer.

- Kind: struct
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Constructors

- [`Mask`](/api/Sandbox.Painter.Mask/.ctor): An image mask positioned in drawing coordinates. Applied to the completed layer.

## Properties

- [`Mode`](/api/Sandbox.Painter.Mask/Mode): Whether image alpha or luminance controls layer visibility. Defaults to alpha.
- [`Rect`](/api/Sandbox.Painter.Mask/Rect): Image position and size in drawing coordinates. Must have finite, positive dimensions.
- [`Repeat`](/api/Sandbox.Painter.Mask/Repeat): Image repetition outside the mask rectangle. Defaults to no repetition.
- [`Rotation`](/api/Sandbox.Painter.Mask/Rotation): Rotation around the image center in degrees. Must be finite.
- [`Sampling`](/api/Sandbox.Painter.Mask/Sampling): Texture sampling filter. Defaults to bilinear sampling.
- [`Texture`](/api/Sandbox.Painter.Mask/Texture): Mask image. Must be non-null when used by a layer.

## Methods

- [`Deconstruct`](/api/Sandbox.Painter.Mask/Deconstruct)
