Skip to content

Latest commit

 

History

History
61 lines (40 loc) · 1.11 KB

GdipGetImagePalette.md

File metadata and controls

61 lines (40 loc) · 1.11 KB

Home

Function name : GdipGetImagePalette

Group: GDI+ Image - Library: gdiplus


Gets the color palette of this Image object.


Code examples:

Displaying the color palette stored in an image file

Declaration:

GpStatus WINGDIPAPI GdipGetImagePalette(
	GpImage *image,
	ColorPalette *palette,
	INT size
)
  

FoxPro declaration:

DECLARE INTEGER GdipGetImagePalette IN gdiplus;
	INTEGER img,;
	STRING @imgpalette,;
	INTEGER palettesize
  

Parameters:

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.


Return value:

Returns GpStatus value, 0 means success.


Comments:

Call GdipGetImagePaletteSize function to determine the size.

See also: GdipSetImagePalette.