Click or drag to resize
CanvasImageInterpolation Enumeration
Specifies the quality used for image resizing and transforms.

Namespace:  Microsoft.Graphics.Canvas
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public enum CanvasImageInterpolation
Members
  Member nameValueDescription
NearestNeighbor0Samples the nearest single point and uses that exact color. This option is the fastest, but outputs the lowest quality image.
Linear1Uses a four point sample and linear interpolation. Compared to NearestNeighbor, this option is slower but outputs a higher quality image.
Cubic2Uses a 16 sample cubic kernel for interpolation. This mode uses the most processing time, but outputs a higher quality image.
MultiSampleLinear3Uses 4 linear samples within a single pixel for good edge anti-aliasing. This mode is good for scaling down by small amounts on images with few pixels.
Anisotropic4Uses anisotropic filtering to sample a pattern according to the transformed shape of the image.
HighQualityCubic5Uses a variable size high quality cubic kernel to perform a pre-downscale the image if downscaling is involved in the transform matrix. Then uses the cubic interpolation mode for the final output.
See Also