Interface IPaletteDitherImageProcessor<TPixel>
Implements an algorithm to alter the pixels of an image via palette dithering.
Namespace: SixLabors.ImageSharp.Processing.Processors.Dithering
Assembly: SixLabors.ImageSharp.dll
Syntax
public interface IPaletteDitherImageProcessor<TPixel>
    where TPixel : struct, IPixel<TPixel>Type Parameters
| Name | Description | 
|---|---|
| TPixel | The pixel format. | 
Properties
| Improve this Doc View SourceConfiguration
Gets the configuration instance to use when performing operations.
Declaration
Configuration Configuration { get; }Property Value
| Type | Description | 
|---|---|
| Configuration | 
DitherScale
Gets the dithering scale used to adjust the amount of dither. Range 0..1.
Declaration
float DitherScale { get; }Property Value
| Type | Description | 
|---|---|
| Single | 
Palette
Gets the dithering palette.
Declaration
ReadOnlyMemory<TPixel> Palette { get; }Property Value
| Type | Description | 
|---|---|
| ReadOnlyMemory<TPixel> | 
Methods
| Improve this Doc View SourceGetPaletteColor(TPixel)
Returns the color from the dithering palette corresponding to the given color.
Declaration
TPixel GetPaletteColor(TPixel color)Parameters
| Type | Name | Description | 
|---|---|---|
| TPixel | color | The color to match. | 
Returns
| Type | Description | 
|---|---|
| TPixel | The  |