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 interpolation mode to be used when a bitmap is composed with any transform where the pixels in the bitmap don't line up exactly one-to-one with pixels on screen.
Syntax
typedef enum DCOMPOSITION_BITMAP_INTERPOLATION_MODE {
DCOMPOSITION_BITMAP_INTERPOLATION_MODE_NEAREST_NEIGHBOR = 0,
DCOMPOSITION_BITMAP_INTERPOLATION_MODE_LINEAR = 1,
DCOMPOSITION_BITMAP_INTERPOLATION_MODE_INHERIT = 0xffffffff
} ;
Constants
DCOMPOSITION_BITMAP_INTERPOLATION_MODE_NEAREST_NEIGHBORValue: 0 Bitmaps are interpolated by using nearest-neighbor sampling. |
DCOMPOSITION_BITMAP_INTERPOLATION_MODE_LINEARValue: 1 Bitmaps are interpolated by using linear sampling. |
DCOMPOSITION_BITMAP_INTERPOLATION_MODE_INHERITValue: 0xffffffff Bitmaps are interpolated according to the mode established by the parent visual. |
Remarks
The default interpolation mode for a visual is DCOMPOSITION_BITMAP_INTERPOLATION_MODE_INHERIT. If all visuals in a visual tree specify this mode, the default for all visuals is nearest neighbor sampling, 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 |