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 : IResampler
Constructors
| Edit this page View SourceLanczosResampler(float)
Initializes a new instance of the LanczosResampler struct.
Declaration
public LanczosResampler(float radius)
Parameters
| Type | Name | Description |
|---|---|---|
| float | radius | The sampling radius. |
Fields
| Edit this page View SourceLanczos2
Implements the Lanczos kernel algorithm with a radius of 2.
Declaration
public static readonly LanczosResampler Lanczos2
Field Value
| Type | Description |
|---|---|
| LanczosResampler |
Lanczos3
Implements the Lanczos kernel algorithm with a radius of 3.
Declaration
public static readonly LanczosResampler Lanczos3
Field Value
| Type | Description |
|---|---|
| LanczosResampler |
Lanczos5
Implements the Lanczos kernel algorithm with a radius of 5.
Declaration
public static readonly LanczosResampler Lanczos5
Field Value
| Type | Description |
|---|---|
| LanczosResampler |
Lanczos8
Implements the Lanczos kernel algorithm with a radius of 8.
Declaration
public static readonly LanczosResampler Lanczos8
Field Value
| Type | Description |
|---|---|
| LanczosResampler |
Properties
| Edit this page View SourceRadius
Gets the radius in which to sample pixels.
Declaration
public float Radius { get; }
Property Value
| Type | Description |
|---|---|
| float |
Methods
| Edit this page View SourceApplyTransform<TPixel>(IResamplingTransformImageProcessor<TPixel>)
Applies a transformation upon an image.
Declaration
public void ApplyTransform<TPixel>(IResamplingTransformImageProcessor<TPixel> processor) where TPixel : unmanaged, IPixel<TPixel>
Parameters
| Type | Name | Description |
|---|---|---|
| IResamplingTransformImageProcessor<TPixel> | processor | The transforming image processor. |
Type Parameters
| Name | Description |
|---|---|
| TPixel | The pixel format. |
GetValue(float)
Gets the result of the interpolation algorithm.
Declaration
public float GetValue(float x)
Parameters
| Type | Name | Description |
|---|---|---|
| float | x | The value to process. |
Returns
| Type | Description |
|---|---|
| float | The float |