Windows Dev Center

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     = 0,
  DCOMPOSITION_OPACITY_MODE_MULTIPLY  = 1,
  DCOMPOSITION_OPACITY_MODE_INHERIT   = 0xffffffff
} DCOMPOSITION_OPACITY_MODE;

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

DComp.h

See also

IDCompositionEffectGroup::SetOpacity
IDCompositionVisual2::SetOpacityMode

 

 

Community Additions

ADD
Show:
© 2015 Microsoft