DCOMPOSITION_OPACITY_MODE Enumeration

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,
  DCOMPOSITION_OPACITY_MODE_MULTIPLY,
  DCOMPOSITION_OPACITY_MODE_INHERIT
} ;

Constants

DCOMPOSITION_OPACITY_MODE_LAYER 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_MULTIPLY 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_INHERIT The opacity mode is the same as that of the target visual’s parent visual.

Requirements

   
Header dcomptypes.h (include DComp.h)

See Also

IDCompositionEffectGroup::SetOpacity

IDCompositionVisual2::SetOpacityMode