Table of Contents

Interface IQuantizer

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

Provides methods for allowing quantization of images pixels with configurable dithering.

public interface IQuantizer

Properties

Options

Gets the quantizer options defining quantization rules.

QuantizerOptions Options { get; }

Property Value

QuantizerOptions

Methods

CreatePixelSpecificQuantizer<TPixel>(Configuration)

Creates the generic frame quantizer.

IQuantizer<TPixel> CreatePixelSpecificQuantizer<TPixel>(Configuration configuration) where TPixel : unmanaged, IPixel<TPixel>

Parameters

configuration Configuration

The Configuration to configure internal operations.

Returns

IQuantizer<TPixel>

The IQuantizer<TPixel>.

Type Parameters

TPixel

The pixel format.

CreatePixelSpecificQuantizer<TPixel>(Configuration, QuantizerOptions)

Creates the generic frame quantizer.

IQuantizer<TPixel> CreatePixelSpecificQuantizer<TPixel>(Configuration configuration, QuantizerOptions options) where TPixel : unmanaged, IPixel<TPixel>

Parameters

configuration Configuration

The Configuration to configure internal operations.

options QuantizerOptions

The options to create the quantizer with.

Returns

IQuantizer<TPixel>

The IQuantizer<TPixel>.

Type Parameters

TPixel

The pixel format.