FreeImageBitmap.GetQuantizedInstance Method (FREE_IMAGE_QUANTIZE, Int32)

FreeImage.NET

FreeImageBitmapGetQuantizedInstance Method (FREE_IMAGE_QUANTIZE, Int32)
Quantizes this FreeImageBitmap from 24 bit, using the specified algorithm initializing a new 8 bit instance with the specified paletteSize.

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public FreeImageBitmap GetQuantizedInstance(
	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: FreeImageBitmap
The quantized instance.
See Also