Table of Contents

Struct BoxResampler

Namespace
SixLabors.ImageSharp.Processing.Processors.Transforms
Assembly
SixLabors.ImageSharp.dll

The function implements the box algorithm. Similar to nearest neighbor when upscaling. When downscaling the pixels will average, merging together.

public readonly struct BoxResampler : IResampler
Implements
Inherited Members

Properties

Radius

public float Radius { get; }

Property Value

float

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

Returns

float