Opacity metadata effect

You can use this effect to mark an area of an input image as opaque, so internal rendering optimizations to the graph are possible.

Note  This effect doesn't modify the image itself to be opaque. It modifies data associated with the image so the renderer assumes the specified region is opaque.

The CLSID for this effect is CLSID_D2D1OpacityMetadata.

Effect properties

Display name and index enumerationType and default valueDescription

OutputRect

D2D1_OPACITYMETADATA_PROP_INPUT_OPAQUE_RECT

D2D1_VECTOR_4F

(-FLT_MAX, -FLT_MAX, FLT_MAX, FLT_MAX)

The portion of the source image that is opaque. The default is the entire input image.

 

Requirements

Minimum supported clientWindows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps]
Minimum supported serverWindows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps]
Headerd2d1effects.h
Libraryd2d1.lib, dxguid.lib

 

Related topics

ID2D1Effect

 

 

Community Additions

ADD
Show:
© 2014 Microsoft