Quantizes a high-color 24-bit bitmap to an 8-bit palette color bitmap.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public static FIBITMAP ColorQuantize(
	FIBITMAP dib,
	FREE_IMAGE_QUANTIZE quantize
)
Visual Basic (Declaration)
Public Shared Function ColorQuantize ( _
	dib As FIBITMAP, _
	quantize As FREE_IMAGE_QUANTIZE _
) As FIBITMAP
Visual C++
public:
static FIBITMAP ColorQuantize(
	FIBITMAP dib, 
	FREE_IMAGE_QUANTIZE quantize
)

Parameters

dib
Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.
quantize
Type: FreeImageAPI..::.FREE_IMAGE_QUANTIZE
Specifies the color reduction algorithm to be used.

Return Value

Handle to a FreeImage bitmap.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also