Struct NearestNeighborResampler
- Namespace
- SixLabors.ImageSharp.Processing.Processors.Transforms
- Assembly
- SixLabors.ImageSharp.dll
The function implements the nearest neighbor algorithm. This uses an unscaled filter which will select the closest pixel to the new pixels position.
public readonly struct NearestNeighborResampler : IResampler
- Implements
- Inherited Members
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