Class QuantizerConstants
Contains color quantization specific constants.
Inherited Members
Namespace: SixLabors.ImageSharp.Processing.Processors.Quantization
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class QuantizerConstants
Fields
| Edit this page View SourceMaxColors
The maximum number of colors to use when quantizing an image.
Declaration
public const int MaxColors = 256
Field Value
Type | Description |
---|---|
int |
MaxDitherScale
The max dithering scale used to adjust the amount of dither.
Declaration
public const float MaxDitherScale = 1
Field Value
Type | Description |
---|---|
float |
MinColors
The minimum number of colors to use when quantizing an image.
Declaration
public const int MinColors = 1
Field Value
Type | Description |
---|---|
int |
MinDitherScale
The minumim dithering scale used to adjust the amount of dither.
Declaration
public const float MinDitherScale = 0
Field Value
Type | Description |
---|---|
float |
Properties
| Edit this page View SourceDefaultDither
Gets the default dithering algorithm to use.
Declaration
public static IDither DefaultDither { get; }
Property Value
Type | Description |
---|---|
IDither |