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

public float Radius { get; }

Property Value

float

Methods

ApplyTransform<TPixel>(IResamplingTransformImageProcessor<TPixel>)

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

Parameters

processor IResamplingTransformImageProcessor<TPixel>

Type Parameters

TPixel

GetValue(float)

public float GetValue(float x)

Parameters

x float

Returns

float