PredefinedColorsQuantizerFromCustomPalette Method (Palette)

KGy SOFT Drawing Libraries Help
Gets a PredefinedColorsQuantizer instance that quantizes colors using the specified palette.
See the Remarks section for details.

Namespace:  KGySoft.Drawing.Imaging
Assembly:  KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 5.1.0
Syntax

public static PredefinedColorsQuantizer FromCustomPalette(
	Palette palette
)

Parameters

palette
Type: KGySoft.Drawing.ImagingPalette
The Palette to be used by the returned instance.

Return Value

Type: 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

Reference