편집

다음을 통해 공유


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 enumeration Type and default value Description
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

Requirement Value
Minimum supported client Windows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps]
Minimum supported server Windows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps]
Header d2d1effects.h
Library d2d1.lib, dxguid.lib

ID2D1Effect