Interface IResampler
- Namespace
- SixLabors.ImageSharp.Processing.Processors.Transforms
- Assembly
- SixLabors.ImageSharp.dll
Encapsulates an interpolation algorithm for resampling images.
public interface IResampler
Properties
Radius
Gets the radius in which to sample pixels.
float Radius { get; }
Property Value
Methods
ApplyTransform<TPixel>(IResamplingTransformImageProcessor<TPixel>)
Applies a transformation upon an image.
void ApplyTransform<TPixel>(IResamplingTransformImageProcessor<TPixel> processor) where TPixel : unmanaged, IPixel<TPixel>
Parameters
processor
IResamplingTransformImageProcessor<TPixel>The transforming image processor.
Type Parameters
TPixel
The pixel format.
GetValue(float)
Gets the result of the interpolation algorithm.
float GetValue(float x)
Parameters
x
floatThe value to process.