Struct TriangleResampler
- Namespace
- SixLabors.ImageSharp.Processing.Processors.Transforms
- Assembly
- SixLabors.ImageSharp.dll
The function implements the triangle (bilinear) algorithm. Bilinear interpolation can be used where perfect image transformation with pixel matching is impossible, so that one can calculate and assign appropriate intensity values to pixels.
public readonly struct TriangleResampler : 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