PredefinedColorsQuantizerFromCustomPalette(Palette) Method

Gets a PredefinedColorsQuantizer instance that quantizes colors using the specified palette.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 8.1.0
C#
public static PredefinedColorsQuantizer FromCustomPalette(
	Palette palette
)

Parameters

palette  Palette
The Palette to be used by the returned instance.

Return Value

PredefinedColorsQuantizer
A PredefinedColorsQuantizer instance that quantizes colors using the specified palette.

Remarks

If a color to be quantized can be transformed to a result color directly, and the quantized result is not needed to be an indexed image, then use the FromCustomFunction overloads instead.

See Also