Interface IQuantizer
Provides methods for allowing quantization of images pixels with configurable dithering.
Namespace: SixLabors.ImageSharp.Processing.Processors.Quantization
Assembly: SixLabors.ImageSharp.dll
Syntax
public interface IQuantizer
Properties
| Edit this page View SourceOptions
Gets the quantizer options defining quantization rules.
Declaration
QuantizerOptions Options { get; }
Property Value
Type | Description |
---|---|
QuantizerOptions |
Methods
| Edit this page View SourceCreatePixelSpecificQuantizer<TPixel>(Configuration)
Creates the generic frame quantizer.
Declaration
IQuantizer<TPixel> CreatePixelSpecificQuantizer<TPixel>(Configuration configuration) where TPixel : unmanaged, IPixel<TPixel>
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | The Configuration to configure internal operations. |
Returns
Type | Description |
---|---|
IQuantizer<TPixel> | The IQuantizer<TPixel>. |
Type Parameters
Name | Description |
---|---|
TPixel | The pixel format. |
CreatePixelSpecificQuantizer<TPixel>(Configuration, QuantizerOptions)
Creates the generic frame quantizer.
Declaration
IQuantizer<TPixel> CreatePixelSpecificQuantizer<TPixel>(Configuration configuration, QuantizerOptions options) where TPixel : unmanaged, IPixel<TPixel>
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | The Configuration to configure internal operations. |
QuantizerOptions | options | The options to create the quantizer with. |
Returns
Type | Description |
---|---|
IQuantizer<TPixel> | The IQuantizer<TPixel>. |
Type Parameters
Name | Description |
---|---|
TPixel | The pixel format. |