FreeImage.ColorQuantizeEx Method (FIBITMAP, FREE_IMAGE_QUANTIZE, Int32, Int32, RGBQUAD[])

FreeImage.NET

FreeImageColorQuantizeEx Method (FIBITMAP, FREE_IMAGE_QUANTIZE, Int32, Int32, RGBQUAD)
ColorQuantizeEx is an extension to the ColorQuantize(FIBITMAP, FREE_IMAGE_QUANTIZE) method that provides additional options used to quantize a 24-bit image to any number of colors (up to 256), as well as quantize a 24-bit image using a partial or full provided palette.

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static FIBITMAP ColorQuantizeEx(
	FIBITMAP dib,
	FREE_IMAGE_QUANTIZE quantize,
	int PaletteSize,
	int ReserveSize,
	RGBQUAD[] ReservePalette
)

Parameters

dib
Type: FreeImageAPIFIBITMAP
Handle to a FreeImage bitmap.
quantize
Type: FreeImageAPIFREE_IMAGE_QUANTIZE
Specifies 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: FIBITMAP
Handle to a FreeImage bitmap.
See Also