Skip to content

Latest commit

 

History

History
92 lines (72 loc) · 3.75 KB

ne-dcomptypes-dcomposition_composite_mode.md

File metadata and controls

92 lines (72 loc) · 3.75 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NE:dcomptypes.DCOMPOSITION_COMPOSITE_MODE
DCOMPOSITION_COMPOSITE_MODE (dcomptypes.h)
The mode to use to blend the bitmap content of a visual with the render target.
DCOMPOSITION_COMPOSITE_MODE
DCOMPOSITION_COMPOSITE_MODE enumeration [DirectComposition]
DCOMPOSITION_COMPOSITE_MODE_DESTINATION_INVERT
DCOMPOSITION_COMPOSITE_MODE_INHERIT
DCOMPOSITION_COMPOSITE_MODE_MIN_BLEND
DCOMPOSITION_COMPOSITE_MODE_SOURCE_OVER
dcomptypes/DCOMPOSITION_COMPOSITE_MODE
dcomptypes/DCOMPOSITION_COMPOSITE_MODE_DESTINATION_INVERT
dcomptypes/DCOMPOSITION_COMPOSITE_MODE_INHERIT
dcomptypes/DCOMPOSITION_COMPOSITE_MODE_MIN_BLEND
dcomptypes/DCOMPOSITION_COMPOSITE_MODE_SOURCE_OVER
directcomp.dcomposition_composite_mode
directcomp\dcomposition_composite_mode.htm
directcomp
D89379F5-57F8-4838-8E8F-FF261D69DE59
12/05/2018
DCOMPOSITION_COMPOSITE_MODE, DCOMPOSITION_COMPOSITE_MODE enumeration [DirectComposition], DCOMPOSITION_COMPOSITE_MODE_DESTINATION_INVERT, DCOMPOSITION_COMPOSITE_MODE_INHERIT, DCOMPOSITION_COMPOSITE_MODE_MIN_BLEND, DCOMPOSITION_COMPOSITE_MODE_SOURCE_OVER, dcomptypes/DCOMPOSITION_COMPOSITE_MODE, dcomptypes/DCOMPOSITION_COMPOSITE_MODE_DESTINATION_INVERT, dcomptypes/DCOMPOSITION_COMPOSITE_MODE_INHERIT, dcomptypes/DCOMPOSITION_COMPOSITE_MODE_MIN_BLEND, dcomptypes/DCOMPOSITION_COMPOSITE_MODE_SOURCE_OVER, directcomp.dcomposition_composite_mode
dcomptypes.h
Windows
Windows 8 [desktop apps only]
Windows Server 2012 [desktop apps only]
Windows
19H1
DCOMPOSITION_COMPOSITE_MODE
dcomptypes/DCOMPOSITION_COMPOSITE_MODE
c++
APIRef
kbSyntax
HeaderDef
DcompTypes.h
DCOMPOSITION_COMPOSITE_MODE

DCOMPOSITION_COMPOSITE_MODE enumeration

-description

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

-enum-fields

-field DCOMPOSITION_COMPOSITE_MODE_SOURCE_OVER:0

The standard source-over-destination blend mode.

-field DCOMPOSITION_COMPOSITE_MODE_DESTINATION_INVERT:1

The bitmap colors are inverted.

-field DCOMPOSITION_COMPOSITE_MODE_MIN_BLEND:2

Bitmap colors subtract for color channels in the background.

-field DCOMPOSITION_COMPOSITE_MODE_INHERIT: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.

-see-also

IDCompositionVisual::SetCompositeMode