DCOMPOSITION_COMPOSITE_MODE enumeration (dcomptypes.h)

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 = 0,
  DCOMPOSITION_COMPOSITE_MODE_DESTINATION_INVERT = 1,
  DCOMPOSITION_COMPOSITE_MODE_MIN_BLEND = 2,
  DCOMPOSITION_COMPOSITE_MODE_INHERIT = 0xffffffff
} ;

Constants

 
DCOMPOSITION_COMPOSITE_MODE_SOURCE_OVER
Value: 0
The standard source-over-destination blend mode.
DCOMPOSITION_COMPOSITE_MODE_DESTINATION_INVERT
Value: 1
The bitmap colors are inverted.
DCOMPOSITION_COMPOSITE_MODE_MIN_BLEND
Value: 2
Bitmap colors subtract for color channels in the background.
DCOMPOSITION_COMPOSITE_MODE_INHERIT
Value: 0xffffffff
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

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

See also

IDCompositionVisual::SetCompositeMode