ID2D1DeviceContext::FillOpacityMask method
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, optional] const D2D1_RECT_F *destinationRectangle, [in, optional] const D2D1_RECT_F *sourceRectangle );
Parameters
- opacityMask [in]
-
Type: ID2D1Bitmap*
The bitmap that acts as the opacity mask
- brush [in]
-
Type: ID2D1Brush*
The brush to use for filling the primitive.
- destinationRectangle [in, optional]
-
Type: const D2D1_RECT_F*
The destination rectangle to output to in the render target
- sourceRectangle [in, optional]
-
Type: const D2D1_RECT_F*
The source rectangle from the opacity mask bitmap.
Return value
This method does not return a value.
Requirements
|
Minimum supported client |
Windows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | Windows Store apps] |
|
Minimum supported phone |
Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps] |
|
Header |
|
|
DLL |
|
See also