Table of Contents

Enum BitmapInterpolationMode

Namespace
SharpDX.WIC
Assembly
SharpDX.Direct2D1.dll

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

public enum BitmapInterpolationMode

Fields

Cubic = 2

A bicubic interpolation algorithm.

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

Fant = 3

A Fant resampling algorithm.

Destination pixel values are computed as a weighted average of the all the pixels that map to the new pixel.

HighQualityCubic = 4

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. ?
Linear = 1

A bilinear interpolation algorithm.

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

NearestNeighbor = 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.