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