FreeImageBitmap.Quantize Method (FREE_IMAGE_QUANTIZE, Int32)

FreeImage.NET

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

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
)

Parameters

algorithm
Type: FreeImageAPIFREE_IMAGE_QUANTIZE
The color reduction algorithm to be used.
paletteSize
Type: SystemInt32
Size of the desired output palette.

Return Value

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