Table of Contents

Class KnownResamplers

Namespace
SixLabors.ImageSharp.Processing
Assembly
SixLabors.ImageSharp.dll

Contains reusable static instances of known resampling algorithms

public static class KnownResamplers
Inheritance
KnownResamplers
Inherited Members

Properties

Bicubic

Gets the Bicubic sampler that implements the bicubic kernel algorithm W(x)

public static IResampler Bicubic { get; }

Property Value

IResampler

Box

Gets the Box sampler that implements the box algorithm. Similar to nearest neighbor when upscaling. When downscaling the pixels will average, merging pixels together.

public static IResampler Box { get; }

Property Value

IResampler

CatmullRom

Gets the Catmull-Rom sampler, a well known standard Cubic Filter often used as a interpolation function

public static IResampler CatmullRom { get; }

Property Value

IResampler

Hermite

Gets the Hermite sampler. A type of smoothed triangular interpolation filter that rounds off strong edges while preserving flat 'color levels' in the original image.

public static IResampler Hermite { get; }

Property Value

IResampler

Lanczos2

Gets the Lanczos kernel sampler that implements smooth interpolation with a radius of 2 pixels. This algorithm provides sharpened results when compared to others when downsampling.

public static IResampler Lanczos2 { get; }

Property Value

IResampler

Lanczos3

Gets the Lanczos kernel sampler that implements smooth interpolation with a radius of 3 pixels This algorithm provides sharpened results when compared to others when downsampling.

public static IResampler Lanczos3 { get; }

Property Value

IResampler

Lanczos5

Gets the Lanczos kernel sampler that implements smooth interpolation with a radius of 5 pixels This algorithm provides sharpened results when compared to others when downsampling.

public static IResampler Lanczos5 { get; }

Property Value

IResampler

Lanczos8

Gets the Lanczos kernel sampler that implements smooth interpolation with a radius of 8 pixels This algorithm provides sharpened results when compared to others when downsampling.

public static IResampler Lanczos8 { get; }

Property Value

IResampler

MitchellNetravali

Gets the Mitchell-Netravali sampler. This seperable cubic algorithm yields a very good equilibrium between detail preservation (sharpness) and smoothness.

public static IResampler MitchellNetravali { get; }

Property Value

IResampler

NearestNeighbor

Gets the Nearest-Neighbour sampler that implements the nearest neighbor algorithm. This uses a very fast, unscaled filter which will select the closest pixel to the new pixels position.

public static IResampler NearestNeighbor { get; }

Property Value

IResampler

Robidoux

Gets the Robidoux sampler. This algorithm developed by Nicolas Robidoux providing a very good equilibrium between detail preservation (sharpness) and smoothness comparable to MitchellNetravali.

public static IResampler Robidoux { get; }

Property Value

IResampler

RobidouxSharp

Gets the Robidoux Sharp sampler. A sharpened form of the Robidoux sampler

public static IResampler RobidouxSharp { get; }

Property Value

IResampler

Spline

Gets the Spline sampler. A separable cubic algorithm similar to MitchellNetravali but yielding smoother results.

public static IResampler Spline { get; }

Property Value

IResampler

Triangle

Gets the Triangle sampler, otherwise known as Bilinear. This interpolation algorithm can be used where perfect image transformation with pixel matching is impossible, so that one can calculate and assign appropriate intensity values to pixels

public static IResampler Triangle { get; }

Property Value

IResampler

Welch

Gets the Welch sampler. A high speed algorithm that delivers very sharpened results.

public static IResampler Welch { get; }

Property Value

IResampler