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:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
public static FIBITMAP ColorQuantizeEx( FIBITMAP dib, FREE_IMAGE_QUANTIZE quantize, int PaletteSize, int ReserveSize, RGBQUAD[] ReservePalette ) |
Visual Basic (Declaration) |
---|
Public Shared Function ColorQuantizeEx ( _ dib As FIBITMAP, _ quantize As FREE_IMAGE_QUANTIZE, _ PaletteSize As Integer, _ ReserveSize As Integer, _ ReservePalette As RGBQUAD() _ ) As FIBITMAP |
Visual C++ |
---|
public: static FIBITMAP ColorQuantizeEx( FIBITMAP dib, FREE_IMAGE_QUANTIZE quantize, int PaletteSize, int ReserveSize, array<RGBQUAD>^ ReservePalette ) |
Parameters
- dib
- Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.
- quantize
- Type: FreeImageAPI..::.FREE_IMAGE_QUANTIZE
Specifies the color reduction algorithm to be used.
- PaletteSize
- Type: System..::.Int32
Size of the desired output palette.
- ReserveSize
- Type: System..::.Int32
Size of the provided palette of ReservePalette.
- ReservePalette
- Type: array<
FreeImageAPI..::.RGBQUAD
>[]()[]
The provided palette.