Click or drag to resize

ResampleMethod Enumeration

Specifies the type of resampling method to apply when using the %ResampleCommand%, %ResampleColormappedToRgbCommand% or the %Atalasoft.Imaging.ImageProcessing.Document.ResampleDocumentCommand%.

Namespace:  Atalasoft.Imaging.ImageProcessing
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public enum ResampleMethod
Members
  Member nameDescription
Default Uses a predefined resampling method depending on the image PixelFormat and final size. Uses Nearest Neighbor resampling for 1-bit and 8-bit colormapped images, BiLinear when increasing the size of continuous tone images. and AreaAverage when reducing continuous tone images.
NearestNeighbor Use the nearest pixel value. This is the fastest algorithm.
BiLinear Uses bi-linear resampling. Yields good results when enlarging images, and fairly fast.
BiCubic Uses bi-cubic interpolation. Better quality then bi-linear but slower.
AreaAverage Average the pixel values when reducing image size. Will cause an exception to be thrown if increasing image size.
BoxFilter BoxFilter resize algorithm.
TriangleFilter TriangleFilter resize algorithm.
HammingFilter HammingFilter resize algorithm.
GaussianFilter GaussianFilter resize algorithm.
BellFilter BellFilter resize algorithm.
BsplineFilter BsplineFilter resize algorithm.
Cubic1Filter CubicFilter resize algorithm.
Cubic2Filter Cubic2Filter resize algorithm.
LanczosFilter

Generally yields the best results for photographic images at the expense of speed. Very similar to Photoshop's Bi-cubic reductions.

MitchellFilter MitchellFilter resize algorithm.
SincFilter SincFilter resize algorithm.
HermiteFilter HermiteFilter resize algorithm.
HanningFilter HanningFilter resize algorithm.
CatromFilter CatromFilter resize algorithm.
See Also