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
| Improve this Doc View SourceMaxColors
The maximum number of colors to use when quantizing an image.
Declaration
public const int MaxColors = 256
Field Value
Type | Description |
---|---|
Int32 |
MaxDitherScale
The max dithering scale used to adjust the amount of dither.
Declaration
public const float MaxDitherScale = 1F
Field Value
Type | Description |
---|---|
Single |
MinColors
The minimum number of colors to use when quantizing an image.
Declaration
public const int MinColors = 1
Field Value
Type | Description |
---|---|
Int32 |
MinDitherScale
The minumim dithering scale used to adjust the amount of dither.
Declaration
public const float MinDitherScale = 0F
Field Value
Type | Description |
---|---|
Single |
Properties
| Improve this Doc View SourceDefaultDither
Gets the default dithering algorithm to use.
Declaration
public static IDither DefaultDither { get; }
Property Value
Type | Description |
---|---|
IDither |