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.
Specifies the border mode to use when composing a bitmap or applying a clip with any transform such that the edges of the bitmap or clip are not axis-aligned with integer coordinates.
Syntax
typedef enum DCOMPOSITION_BORDER_MODE {
DCOMPOSITION_BORDER_MODE_SOFT = 0,
DCOMPOSITION_BORDER_MODE_HARD = 1,
DCOMPOSITION_BORDER_MODE_INHERIT = 0xffffffff
} ;
Constants
DCOMPOSITION_BORDER_MODE_SOFTValue: 0 Bitmap and clip edges are antialiased. |
DCOMPOSITION_BORDER_MODE_HARDValue: 1 Bitmap and clip edges are aliased. See Remarks. |
DCOMPOSITION_BORDER_MODE_INHERITValue: 0xffffffff Bitmap and clip edges are drawn according to the mode established by the parent visual. |
Remarks
The default border mode for any given visual is DCOMPOSITION_BORDER_MODE_INHERIT, which delegates the determination of the border mode to the parent visual. If all visuals in a visual tree specify this mode, the default for all visuals is aliased rendering, which is the fastest mode.
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 |