FreeImageBitmap.Quantize Method (FREE_IMAGE_QUANTIZE, Int32, Int32, RGBQUAD[])

FreeImage.NET

FreeImageBitmapQuantize Method (FREE_IMAGE_QUANTIZE, Int32, Int32, RGBQUAD)
Quantizes this FreeImageBitmap from 24 bit to 8bit creating a new palette with the specified paletteSize using the specified algorithm and the specified reservePalette up to the specified paletteSize.

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public bool Quantize(
	FREE_IMAGE_QUANTIZE algorithm,
	int paletteSize,
	int reserveSize,
	RGBQUAD[] reservePalette
)

Parameters

algorithm
Type: FreeImageAPIFREE_IMAGE_QUANTIZE
The color reduction algorithm to be used.
paletteSize
Type: SystemInt32
Size of the desired output palette.
reserveSize
Type: SystemInt32
Size of the provided palette of ReservePalette.
reservePalette
Type: FreeImageAPIRGBQUAD
The provided palette.

Return Value

Type: Boolean
Returns true on success, false on failure.
See Also