Group: GDI+ Image - Library: gdiplus
Displaying the color palette stored in an image file
GpStatus WINGDIPAPI GdipGetImagePalette(
GpImage *image,
ColorPalette *palette,
INT size
)
DECLARE INTEGER GdipGetImagePalette IN gdiplus;
INTEGER img,;
STRING @imgpalette,;
INTEGER palettesize
img [in] Handle to Image Object
palette [out] Pointer to a ColorPalette structure that receives the palette.
size [in] Integer that specifies the size, in bytes, of the palette.
Returns GpStatus value, 0 means success.
Call GdipGetImagePaletteSize function to determine the size.
See also: GdipSetImagePalette.