D2D1_BITMAP_INTERPOLATION_MODE
TOC
Collapse the table of content
Expand the table of content

D2D1_BITMAP_INTERPOLATION_MODE enumeration

Specifies the algorithm that is used when images are scaled or rotated.

Note  Starting in Windows 8, more interpolations modes are available. See D2D1_INTERPOLATION_MODE for more info.
 

Syntax


typedef enum  { 
  D2D1_BITMAP_INTERPOLATION_MODE_NEAREST_NEIGHBOR  = 0,
  D2D1_BITMAP_INTERPOLATION_MODE_LINEAR            = 1
} D2D1_BITMAP_INTERPOLATION_MODE;

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.

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

Minimum supported client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

D2d1.h

 

 

Community Additions

ADD
Show:
© 2016 Microsoft