This function retrieves the palette information for a raster image.

[C++Builder]   BOOL IKGetPalette(HANDLE Handle, short *Red, short *Green, short *Blue);
[Delphi]   function IKGetPalette(Handle: THandle; var Red, Green, Blue: Smallint): LongBool;

Parameters

Name Explanation
Handle The raster image handle
Red Array of the retrieved red palette information
Green Array of the retrieved green palette information
Blue Array of the retrieved blue palette information

(1) C++Builder assigns the first pointer of the array
(2) Delphi the style of the argument is Red[0]

Return Value

Returns True if successful, returns False if not successful

Explanation

The IKGetPalette function retrieves the palette information for a raster image. The various RGB number arrays taken from the palette information become the value in the PalCount member variable of IKIMAGE_INFO. To retrieve the PalCount, please refer to the IKGetImageType function. Regarding IKIMAGE_INFO, please refer to the explanation for the IKIMAGE_INFO member variables in the Ik9Com.dll, Ik9ComA.dll, Ik9Com64.dll, Ik9Com64A.dll.

 

The ImageKit9 VCL is a product created by Newtone Corporation