Table of Contents

Enum StraightenScaleMode

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

Values for the ScaleMode property of the Straighten effect.
D2D1_STRAIGHTEN_SCALE_MODE

public enum StraightenScaleMode

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.