[]
Applies the opacity mask described by the specified bitmap to a brush and uses that brush to paint a region of the render target.
public void FillOpacityMask(Bitmap opacityMask, Brush brush, OpacityMaskContent content)
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. |
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)
public void FillOpacityMask(Bitmap opacityMask, Brush brush, OpacityMaskContent content, RectF? destinationRectangle, RectF? sourceRectangle)
Type | Name | Description |
---|---|---|
Bitmap | opacityMask | |
Brush | brush | |
OpacityMaskContent | content | |
RectF? | destinationRectangle | |
RectF? | sourceRectangle |