Table of Contents

Enum InterpolationModeDefinition

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

Defines the standard constant values used to specify interpolation modes. All Direct2D InterpolationMode enums (e.g. AffineTransform2DInterpolationMode) use these values.

public enum InterpolationModeDefinition

Fields

NearestNeighbor = 0

Samples the nearest single point and uses that. This mode uses less processing time, but outputs the lowest quality image.

Linear = 1

Uses a four point sample and linear interpolation. This mode uses more processing time than the nearest neighbor mode, but outputs a higher quality image.

Cubic = 2

Uses a 16 sample cubic kernel for interpolation. This mode uses the most processing time, but outputs a higher quality image.

MultisampleLinear = 3

Uses 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.

Anisotropic = 4

Uses anisotropic filtering to sample a pattern according to the transformed shape of the bitmap.

HighQualityCubic = 5

Uses a variable size high quality cubic kernel to perform a pre-downscale of the image if downscaling is involved in the transform matrix. Then uses the cubic interpolation mode for the final output.

Fant = 6

Uses the WIC Fant interpolation, the same as the IWICBitmapScaler interface. Doesn't generate a mipmap.

MipmapLinear = 7

Generates mipmap chain in system memory using bilinear interpolation. For each mipmap the effect scales to the nearest multiple of 0.5 using bilinear interpolation and then scales the remaining amount using linear interpolation.