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 : unmanaged, IPixel<TPixel>
Type Parameters
Name | Description |
---|---|
TPixel | The pixel format. |
Properties
| Edit this page 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 |
---|---|
float |
Palette
Gets the dithering palette.
Declaration
ReadOnlyMemory<TPixel> Palette { get; }
Property Value
Type | Description |
---|---|
ReadOnlyMemory<TPixel> |
Methods
| Edit this page 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 |