Struct LanczosResampler
The function implements the Lanczos kernel algorithm as described on Wikipedia.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Processing.Processors.Transforms
Assembly: SixLabors.ImageSharp.dll
Syntax
public readonly struct LanczosResampler : IResamplerConstructors
| Improve this Doc View SourceLanczosResampler(Single)
Initializes a new instance of the LanczosResampler struct.
Declaration
public LanczosResampler(float radius)Parameters
| Type | Name | Description | 
|---|---|---|
| Single | radius | The sampling radius. | 
Fields
| Improve this Doc View SourceLanczos2
Implements the Lanczos kernel algorithm with a radius of 2.
Declaration
public static LanczosResampler Lanczos2Field Value
| Type | Description | 
|---|---|
| LanczosResampler | 
Lanczos3
Implements the Lanczos kernel algorithm with a radius of 3.
Declaration
public static LanczosResampler Lanczos3Field Value
| Type | Description | 
|---|---|
| LanczosResampler | 
Lanczos5
Implements the Lanczos kernel algorithm with a radius of 5.
Declaration
public static LanczosResampler Lanczos5Field Value
| Type | Description | 
|---|---|
| LanczosResampler | 
Lanczos8
Implements the Lanczos kernel algorithm with a radius of 8.
Declaration
public static LanczosResampler Lanczos8Field Value
| Type | Description | 
|---|---|
| LanczosResampler | 
Properties
| Improve this Doc View SourceRadius
Gets the radius in which to sample pixels.
Declaration
public readonly float Radius { get; }Property Value
| Type | Description | 
|---|---|
| Single | 
Methods
| Improve this Doc View SourceApplyTransform<TPixel>(IResamplingTransformImageProcessor<TPixel>)
Applies a transformation upon an image.
Declaration
public readonly void ApplyTransform<TPixel>(IResamplingTransformImageProcessor<TPixel> processor)
    where TPixel : struct, IPixel<TPixel>Parameters
| Type | Name | Description | 
|---|---|---|
| IResamplingTransformImageProcessor<TPixel> | processor | The transforming image processor. | 
Type Parameters
| Name | Description | 
|---|---|
| TPixel | The pixel format. | 
GetValue(Single)
Gets the result of the interpolation algorithm.
Declaration
public readonly float GetValue(float x)Parameters
| Type | Name | Description | 
|---|---|---|
| Single | x | The value to process. | 
Returns
| Type | Description | 
|---|---|
| Single | The Single |