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

MaxColors

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

public const int MaxColors = 256

Field Value

int

MaxDitherScale

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

public const float MaxDitherScale = 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 minumim dithering scale used to adjust the amount of dither.

public const float MinDitherScale = 0

Field Value

float

Properties

DefaultDither

Gets the default dithering algorithm to use.

public static IDither DefaultDither { get; }

Property Value

IDither