WICBitmapInterpolationMode enumeration (wincodec.h)

Specifies the sampling or filtering mode to use when scaling an image.

Syntax

typedef enum WICBitmapInterpolationMode {
  WICBitmapInterpolationModeNearestNeighbor = 0,
  WICBitmapInterpolationModeLinear = 0x1,
  WICBitmapInterpolationModeCubic = 0x2,
  WICBitmapInterpolationModeFant = 0x3,
  WICBitmapInterpolationModeHighQualityCubic = 0x4,
  WICBITMAPINTERPOLATIONMODE_FORCE_DWORD = 0x7fffffff
} ;

Constants

 
WICBitmapInterpolationModeNearestNeighbor
Value: 0
A nearest neighbor interpolation algorithm. Also known as nearest pixel or point interpolation.


The output pixel is assigned the value of the pixel that the point falls within. No other pixels are considered.
WICBitmapInterpolationModeLinear
Value: 0x1
A bilinear interpolation algorithm.


The output pixel values are computed as a weighted average of the nearest four pixels in a 2x2 grid.
WICBitmapInterpolationModeCubic
Value: 0x2
A bicubic interpolation algorithm.


Destination pixel values are computed as a weighted average of the nearest sixteen pixels in a 4x4 grid.
WICBitmapInterpolationModeFant
Value: 0x3
A Fant resampling algorithm.


Destination pixel values are computed as a weighted average of the all the pixels that map to the new pixel.
WICBitmapInterpolationModeHighQualityCubic
Value: 0x4
A high quality bicubic interpolation algorithm. Destination pixel values are computed using a much denser sampling
kernel than regular cubic. The kernel is resized in response to the scale factor, making it suitable for downscaling by factors greater than 2.

Note  This value is supported beginning with Windows 10.

 
WICBITMAPINTERPOLATIONMODE_FORCE_DWORD
Value: 0x7fffffff

Requirements

Requirement Value
Minimum supported client Windows XP with SP2, Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Header wincodec.h