BitmapInterpolationMode Enum

Definition

Specifies the interpolation mode used for scaling pixel data.

public enum class BitmapInterpolationMode
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class BitmapInterpolationMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum BitmapInterpolationMode
var value = Windows.Graphics.Imaging.BitmapInterpolationMode.nearestNeighbor
Public Enum BitmapInterpolationMode
Inheritance
BitmapInterpolationMode
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

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 in a box shaped kernel.

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.

Remarks

This enumeration is used when setting the InterpolationMode property of a BitmapTransform.

In general, moving from NearestNeighbor to Fant, interpolation quality increases while performance decreases.

Applies to

See also