Table of Contents

Class QuantizerOptions

Namespace
SixLabors.ImageSharp.Processing.Processors.Quantization
Assembly
SixLabors.ImageSharp.dll

Defines options for quantization.

public class QuantizerOptions
Inheritance
QuantizerOptions
Inherited Members

Constructors

QuantizerOptions()

public QuantizerOptions()

Properties

Dither

Gets or sets the algorithm to apply to the output image. Defaults to DefaultDither; set to null for no dithering.

public IDither? Dither { get; set; }

Property Value

IDither

DitherScale

Gets or sets the dithering scale used to adjust the amount of dither. Range 0..1. Defaults to MaxDitherScale.

public float DitherScale { get; set; }

Property Value

float

MaxColors

Gets or sets the maximum number of colors to hold in the color palette. Range 0..256. Defaults to MaxColors.

public int MaxColors { get; set; }

Property Value

int