Class QuantizerConstants
- Namespace
- SixLabors.ImageSharp.Processing.Processors.Quantization
- Assembly
- SixLabors.ImageSharp.dll
Contains color quantization specific constants.
public static class QuantizerConstants
- Inheritance
-
QuantizerConstants
- Inherited Members
Fields
DefaultTransparencyThreshold
The default threshold at which to consider a pixel transparent.
public const float DefaultTransparencyThreshold = 0.2509804
Field Value
MaxColors
The maximum number of colors to use when quantizing an image.
public const int MaxColors = 256
Field Value
MaxDitherScale
The maximum dithering scale used to adjust the amount of dither.
public const float MaxDitherScale = 1
Field Value
MaxTransparencyThreshold
The maximum threshold at which to consider a pixel transparent.
public const float MaxTransparencyThreshold = 1
Field Value
MinColors
The minimum number of colors to use when quantizing an image.
public const int MinColors = 1
Field Value
MinDitherScale
The minimum dithering scale used to adjust the amount of dither.
public const float MinDitherScale = 0
Field Value
MinTransparencyThreshold
The minimum threshold at which to consider a pixel transparent.
public const float MinTransparencyThreshold = 0
Field Value
Properties
DefaultDither
Gets the default dithering algorithm to use.
public static IDither DefaultDither { get; }