Interface IResampler
Encapsulates an interpolation algorithm for resampling images.
Namespace: SixLabors.ImageSharp.Processing.Processors.Transforms
Assembly: SixLabors.ImageSharp.dll
Syntax
public interface IResampler
Properties
| Improve this Doc View SourceRadius
Gets the radius in which to sample pixels.
Declaration
float Radius { get; }
Property Value
Type | Description |
---|---|
Single |
Methods
| Improve this Doc View SourceApplyTransform<TPixel>(IResamplingTransformImageProcessor<TPixel>)
Applies a transformation upon an image.
Declaration
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
float GetValue(float x)
Parameters
Type | Name | Description |
---|---|---|
Single | x | The value to process. |
Returns
Type | Description |
---|---|
Single | The Single |