Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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_OVERValue: 0 The standard source-over-destination blend mode. |
DCOMPOSITION_COMPOSITE_MODE_DESTINATION_INVERTValue: 1 The bitmap colors are inverted. |
DCOMPOSITION_COMPOSITE_MODE_MIN_BLENDValue: 2 Bitmap colors subtract for color channels in the background. |
DCOMPOSITION_COMPOSITE_MODE_INHERITValue: 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)
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 8 [desktop apps only] |
| Minimum supported server | Windows Server 2012 [desktop apps only] |
| Header | dcomptypes.h |