Property MaskImage
- Namespace
- PaintDotNet.Effects.Gpu
- Assembly
- PaintDotNet.Effects.Core.dll
MaskImage
Gets an image that renders a mask based on the selection's geometry. If no selection is active then this will be an opaque white image.
IDeviceImage MaskImage { get; }
Property Value
Remarks
The mask image is created on-demand (lazily) and is cached on the GPU. It is important to only call
this method if you actually intend to use the mask image for rendering. Otherwise, GPU memory usage
will be higher than necessary which may affect performance.
If you need basic information about the selection or mask, use the other methods and properties on
IEffectSelectionInfo.