[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.RenderTarget.FillOpacityMask

FillOpacityMask Method

FillOpacityMask(Bitmap, Brush, OpacityMaskContent)

Applies the opacity mask described by the specified bitmap to a brush and uses that brush to paint a region of the render target.

Declaration
public void FillOpacityMask(Bitmap opacityMask, Brush brush, OpacityMaskContent content)
Parameters
Type Name Description
Bitmap opacityMask

The opacity mask to apply to the brush. The alpha value of each pixel in the region specified by sourceRectangle is multiplied with the alpha value of the brush after the brush has been mapped to the area defined by destinationRectangle.

Brush brush

The brush used to paint the region of the render target specified by destinationRectangle.

OpacityMaskContent content

The type of content the opacity mask contains. The value is used to determine the color space in which the opacity mask is blended.

FillOpacityMask(Bitmap, Brush, OpacityMaskContent, RectF?, RectF?)

void ID2D1RenderTarget::FillOpacityMask([In] ID2D1Bitmap* opacityMask,[In] ID2D1Brush* brush,[In] D2D1_OPACITY_MASK_CONTENT content,[In, Optional] const D2D_RECT_F* destinationRectangle,[In, Optional] const D2D_RECT_F* sourceRectangle)

Declaration
public void FillOpacityMask(Bitmap opacityMask, Brush brush, OpacityMaskContent content, RectF? destinationRectangle, RectF? sourceRectangle)
Parameters
Type Name Description
Bitmap opacityMask
Brush brush
OpacityMaskContent content
RectF? destinationRectangle
RectF? sourceRectangle