Table of Contents

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

float

MaxColors

The maximum number of colors to use when quantizing an image.

public const int MaxColors = 256

Field Value

int

MaxDitherScale

The maximum dithering scale used to adjust the amount of dither.

public const float MaxDitherScale = 1

Field Value

float

MaxTransparencyThreshold

The maximum threshold at which to consider a pixel transparent.

public const float MaxTransparencyThreshold = 1

Field Value

float

MinColors

The minimum number of colors to use when quantizing an image.

public const int MinColors = 1

Field Value

int

MinDitherScale

The minimum dithering scale used to adjust the amount of dither.

public const float MinDitherScale = 0

Field Value

float

MinTransparencyThreshold

The minimum threshold at which to consider a pixel transparent.

public const float MinTransparencyThreshold = 0

Field Value

float

Properties

DefaultDither

Gets the default dithering algorithm to use.

public static IDither DefaultDither { get; }

Property Value

IDither