DCOMPOSITION_COMPOSITE_MODE Enumeration

The mode to use to blend the bitmap content of a visual with the render target.

Syntax

typedef enum DCOMPOSITION_COMPOSITE_MODE {
  DCOMPOSITION_COMPOSITE_MODE_SOURCE_OVER,
  DCOMPOSITION_COMPOSITE_MODE_DESTINATION_INVERT,
  DCOMPOSITION_COMPOSITE_MODE_MIN_BLEND,
  DCOMPOSITION_COMPOSITE_MODE_INHERIT
} ;

Constants

DCOMPOSITION_COMPOSITE_MODE_SOURCE_OVER The standard source-over-destination blend mode.
DCOMPOSITION_COMPOSITE_MODE_DESTINATION_INVERT The bitmap colors are inverted.
DCOMPOSITION_COMPOSITE_MODE_MIN_BLEND Bitmap colors subtract for color channels in the background.
DCOMPOSITION_COMPOSITE_MODE_INHERIT Bitmaps are blended according to the mode established by the parent visual.

Remarks

A single visual can have any combination of visual properties. However, if a visual has the following combination of properties, the borders of the visual will default to DCOMPOSITION_BORDER_MODE_HARD.

  • SetCompositeMode(DCOMPOSITION_COMPOSITE_MODE_DESTINATION_INVERT)
  • SetBorderMode(DCOMPOSITION_BORDER_MODE_SOFT)
  • SetBitmapInterpolationMode(DCOMPOSITION_BITMAP_INTERPOLATION_MODE_NEAREST_NEIGHBOR)
If you want a visual to be drawn with antialiasing, use DCOMPOSITION_BITMAP_INTERPOLATION_MODE_LINEAR for the content of the visual, and DCOMPOSITION_BORDER_MODE_SOFT for the edges.

Requirements

   
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Header dcomptypes.h

See Also

IDCompositionVisual::SetCompositeMode