Nota
Capaian ke halaman ini memerlukan kebenaran. Anda boleh cuba mendaftar masuk atau menukar direktori.
Capaian ke halaman ini memerlukan kebenaran. Anda boleh cuba menukar direktori.
Specifies how the effective opacity value of a visual is applied to that visual’s content and children.
Syntax
typedef enum DCOMPOSITION_OPACITY_MODE {
DCOMPOSITION_OPACITY_MODE_LAYER = 0,
DCOMPOSITION_OPACITY_MODE_MULTIPLY = 1,
DCOMPOSITION_OPACITY_MODE_INHERIT = 0xffffffff
} ;
Constants
DCOMPOSITION_OPACITY_MODE_LAYERValue: 0 The target visual defines a logical layer into which its entire sub-tree is composed with a starting effective opacity of 1.0. The original opacity value is then used to blend the layer onto the visual’s background. |
DCOMPOSITION_OPACITY_MODE_MULTIPLYValue: 1 The opacity value is multiplied with the effective opacity of the parent visual and the result is then individually applied to each piece of content in this visual’s sub-tree. |
DCOMPOSITION_OPACITY_MODE_INHERITValue: 0xffffffff The opacity mode is the same as that of the target visual’s parent visual. |
Requirements
| Requirement | Value |
|---|---|
| Header | dcomptypes.h (include DComp.h) |
See also
IDCompositionEffectGroup::SetOpacity
IDCompositionVisual2::SetOpacityMode