D2D1_BITMAP_INTERPOLATION_MODE enumeration (d2d1.h)
Specifies the algorithm that is used when images are scaled or rotated.
Syntax
typedef enum D2D1_BITMAP_INTERPOLATION_MODE {
D2D1_BITMAP_INTERPOLATION_MODE_NEAREST_NEIGHBOR,
D2D1_BITMAP_INTERPOLATION_MODE_LINEAR,
D2D1_BITMAP_INTERPOLATION_MODE_FORCE_DWORD = 0xffffffff
} ;
Constants
D2D1_BITMAP_INTERPOLATION_MODE_NEAREST_NEIGHBOR Use the exact color of the nearest bitmap pixel to the current rendering pixel. |
D2D1_BITMAP_INTERPOLATION_MODE_LINEAR Interpolate a color from the four bitmap pixels that are the nearest to the rendering pixel. |
D2D1_BITMAP_INTERPOLATION_MODE_FORCE_DWORD Value: 0xffffffff |
Remarks
To stretch an image, each pixel in the original image must be mapped to a group of pixels in the larger image. To shrink an image, groups of pixels in the original image must be mapped to single pixels in the smaller image. The effectiveness of the algorithms that perform these mappings determines the quality of a scaled image. Algorithms that produce higher-quality scaled images tend to require more processing time. D2D1_BITMAP_INTERPOLATION_MODE_NEAREST_NEIGHBOR provides faster but lower-quality interpolation, while D2D1_BITMAP_INTERPOLATION_MODE_LINEAR provides higher-quality interpolation.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps] |
Header | d2d1.h |