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
opacityMask
IDeviceBitmapThe bitmap that acts as the opacity mask
brush
IDeviceBrushThe brush to use for filling the primitive.
dstRect
RectFloat?The destination rectangle to output to in the render target
srcRect
RectFloat?The source rectangle from the opacity mask bitmap.