Table of Contents

Enum BitmapSourceInterpolationMode

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

The interpolation mode used to scale the image in the Bitmap source effect. If the mode disables the mipmap, then BitmapSource will cache the image at the resolution determined by the Scale and EnableDpiCorrection properties.
D2D1_BITMAPSOURCE_INTERPOLATION_MODE

public enum BitmapSourceInterpolationMode

Fields

NearestNeighbor = 0

Samples the nearest single point and uses that. This mode uses less processing time, but outputs the lowest quality image. Doesn't generate a mipmap.

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. Doesn't generate a mipmap.

Cubic = 2

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

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.