Class QuantizerOptions
Defines options for quantization.
Inherited Members
Namespace: SixLabors.ImageSharp.Processing.Processors.Quantization
Assembly: SixLabors.ImageSharp.dll
Syntax
public class QuantizerOptions
Properties
| Improve this Doc View SourceDither
Gets or sets the algorithm to apply to the output image. Defaults to DefaultDither; set to null for no dithering.
Declaration
public IDither Dither { get; set; }
Property Value
Type | Description |
---|---|
IDither |
DitherScale
Gets or sets the dithering scale used to adjust the amount of dither. Range 0..1. Defaults to MaxDitherScale.
Declaration
public float DitherScale { get; set; }
Property Value
Type | Description |
---|---|
Single |
MaxColors
Gets or sets the maximum number of colors to hold in the color palette. Range 0..256. Defaults to MaxColors.
Declaration
public int MaxColors { get; set; }
Property Value
Type | Description |
---|---|
Int32 |