Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ID2D1RenderTarget::FillOpacityMask methods

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

Overload list

MethodDescription
FillOpacityMask(ID2D1Bitmap*,ID2D1Brush*,D2D1_OPACITY_MASK_CONTENT,D2D_RECT_F&,D2D_RECT_F&)

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

FillOpacityMask(ID2D1Bitmap*,ID2D1Brush*,D2D1_OPACITY_MASK_CONTENT,D2D_RECT_F*,D2D_RECT_F*)

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

Remarks

For this method to work properly, the render target must be using the D2D1_ANTIALIAS_MODE_ALIASED antialiasing mode. You can set the antialiasing mode by calling the ID2D1RenderTarget::SetAntialiasMode method.

This method doesn't return an error code if it fails. To determine whether a drawing operation (such as FillOpacityMask) failed, check the result returned by the ID2D1RenderTarget::EndDraw or ID2D1RenderTarget::Flush methods.

Requirements

Library

D2d1.lib

DLL

D2d1.dll

See also

ID2D1RenderTarget

 

 

Community Additions

Show:
© 2014 Microsoft