ID2D1DeviceContext::FillOpacityMask(ID2D1Bitmap*,ID2D1Brush*,constD2D1_RECT_F&,constD2D1_RECT_F*) method (d2d1_1.h)
Fill using the alpha channel of the supplied opacity mask bitmap. The brush opacity will be modulated by the mask. The render target antialiasing mode must be set to aliased.
Syntax
void FillOpacityMask(
[in] ID2D1Bitmap *opacityMask,
[in] ID2D1Brush *brush,
[in, ref, optional] const D2D1_RECT_F & destinationRectangle,
[in, optional] const D2D1_RECT_F *sourceRectangle
);
Parameters
[in] opacityMask
Type: ID2D1Bitmap*
The bitmap that acts as the opacity mask
[in] brush
Type: ID2D1Brush*
The brush to use for filling the primitive.
[in, ref, optional] destinationRectangle
Type: const D2D1_RECT_F
The destination rectangle to output to in the render target
[in, optional] sourceRectangle
Type: const D2D1_RECT_F*
The source rectangle from the opacity mask bitmap.
Return value
None
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | d2d1_1.h |
DLL | D2d1.dll |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for