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(
  ID2D1Bitmap       *opacityMask,
  ID2D1Brush        *brush,
  const D2D1_RECT_F *destinationRectangle,
  const D2D1_RECT_F *sourceRectangle
);

Parameters

opacityMask

Type: ID2D1Bitmap*

The bitmap that acts as the opacity mask

brush

Type: ID2D1Brush*

The brush to use for filling the primitive.

destinationRectangle

Type: const D2D1_RECT_F*

The destination rectangle to output to in the render target

sourceRectangle

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 | 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

ID2D1DeviceContext