Table of Contents

Struct LanczosResampler

Namespace
SixLabors.ImageSharp.Processing.Processors.Transforms
Assembly
SixLabors.ImageSharp.dll

The function implements the Lanczos kernel algorithm as described on Wikipedia.

public readonly struct LanczosResampler : IResampler
Implements
Inherited Members

Constructors

LanczosResampler(float)

Initializes a new instance of the LanczosResampler struct.

public LanczosResampler(float radius)

Parameters

radius float

The sampling radius.

Fields

Lanczos2

Implements the Lanczos kernel algorithm with a radius of 2.

public static readonly LanczosResampler Lanczos2

Field Value

LanczosResampler

Lanczos3

Implements the Lanczos kernel algorithm with a radius of 3.

public static readonly LanczosResampler Lanczos3

Field Value

LanczosResampler

Lanczos5

Implements the Lanczos kernel algorithm with a radius of 5.

public static readonly LanczosResampler Lanczos5

Field Value

LanczosResampler

Lanczos8

Implements the Lanczos kernel algorithm with a radius of 8.

public static readonly LanczosResampler Lanczos8

Field Value

LanczosResampler

Properties

Radius

Gets the radius in which to sample pixels.

public float Radius { get; }

Property Value

float

Methods

ApplyTransform<TPixel>(IResamplingTransformImageProcessor<TPixel>)

Applies a transformation upon an image.

public void ApplyTransform<TPixel>(IResamplingTransformImageProcessor<TPixel> processor) where TPixel : unmanaged, IPixel<TPixel>

Parameters

processor IResamplingTransformImageProcessor<TPixel>

The transforming image processor.

Type Parameters

TPixel

The pixel format.

GetValue(float)

Gets the result of the interpolation algorithm.

public float GetValue(float x)

Parameters

x float

The value to process.

Returns

float

The float