WICBitmapInterpolationMode enumeration

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

Syntax


typedef enum WICBitmapInterpolationMode { 
  WICBitmapInterpolationModeNearestNeighbor   = 0x00000000,
  WICBitmapInterpolationModeLinear            = 0x00000001,
  WICBitmapInterpolationModeCubic             = 0x00000002,
  WICBitmapInterpolationModeFant              = 0x00000003,
  WICBitmapInterpolationModeHighQualityCubic  = 0x00000004
} WICBitmapInterpolationMode;

Constants

WICBitmapInterpolationModeNearestNeighbor

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

A bilinear interpolation algorithm.

The output pixel values are computed as a weighted average of the nearest four pixels in a 2x2 grid.

WICBitmapInterpolationModeCubic

A bicubic interpolation algorithm.

Destination pixel values are computed as a weighted average of the nearest sixteen pixels in a 4x4 grid.

WICBitmapInterpolationModeFant

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

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.
 

Requirements

Minimum supported client

Windows XP with SP2, Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Wincodec.h

IDL

Wincodec.idl

 

 

Show: