IQuantizer Interface

Represents a quantizer that can be used to reduce the number of colors of an image.
For built-in implementations see the PredefinedColorsQuantizer and OptimizedPaletteQuantizer classes.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 8.1.0
C#
public interface IQuantizer

Properties

InitializeReliesOnContent Gets whether Initialize relies on the actual content of the source to be quantized.
PixelFormatHint Gets a KnownPixelFormat that is compatible with this IQuantizer. It is recommended to return the format with the lowest bits-per-pixel value that is still compatible with this instance.

Methods

Initialize Gets an IQuantizingSession instance that can be used to quantize the colors of the specified IReadableBitmapData instance.

Extension Methods

InitializeAsync Gets an IQuantizingSession instance potentially asynchronously that can be used to quantize the colors of the specified IReadableBitmapData instance. If quantizer is a known quantizer that can be evaluated quickly, then this method might be executed synchronously.
This method is available in.NET Framework 4.0 and above.
(Defined by QuantizerExtensions)

See Also