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 |
Related topics
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για