BitmapInterpolationMode enumeration

Applies to Windows and Windows Phone

Specifies the interpolation mode used for scaling pixel data.

Syntax


var value = Windows.Graphics.Imaging.BitmapInterpolationMode.nearestNeighbor;

Attributes

[Version(0x06020000)]

Members

The BitmapInterpolationMode enumeration has these members.

MemberValueDescription
NearestNeighbor | nearestNeighbor0

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.

Linear | linear1

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

Cubic | cubic2

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

Fant | fant3

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.

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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

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

Namespace

Windows.Graphics.Imaging
Windows::Graphics::Imaging [C++]

Metadata

Windows.winmd

See also

BitmapTransform

 

 

Show:
© 2014 Microsoft