Method FillOpacityMask
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
FillOpacityMask(IDeviceBitmap, IDeviceBrush, in RectFloat?, in RectFloat?)
Fill using the alpha channel of the supplied opacity mask bitmap. The brush opacity will be modulated by the mask.
NOTE: The antialiasing mode must be set to Aliased.
void FillOpacityMask(IDeviceBitmap opacityMask, IDeviceBrush brush, in RectFloat? dstRect = null, in RectFloat? srcRect = null)
Parameters
opacityMaskIDeviceBitmapThe bitmap that acts as the opacity mask
brushIDeviceBrushThe brush to use for filling the primitive.
dstRectRectFloat?The destination rectangle to output to in the render target
srcRectRectFloat?The source rectangle from the opacity mask bitmap.