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
floatThe sampling radius.
Fields
Lanczos2
Implements the Lanczos kernel algorithm with a radius of 2.
public static readonly LanczosResampler Lanczos2
Field Value
Lanczos3
Implements the Lanczos kernel algorithm with a radius of 3.
public static readonly LanczosResampler Lanczos3
Field Value
Lanczos5
Implements the Lanczos kernel algorithm with a radius of 5.
public static readonly LanczosResampler Lanczos5
Field Value
Lanczos8
Implements the Lanczos kernel algorithm with a radius of 8.
public static readonly LanczosResampler Lanczos8
Field Value
Properties
Radius
public float Radius { get; }
Property Value
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