ImageGear for C and C++ on Windows v20.5 - Updated
IG_GUI_palette_update
API Reference Guide > Core Component API Reference > Core Component Functions Reference > GUI Functions > GUI Palette Functions > IG_GUI_palette_update

This function may be called to update (repaint) the palette window, if for example the image's DIB palette has been changed in memory by your application.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_GUI_palette_update ( 
        HIGEAR hIGear, 
        DWORD dwGrpID, 
        HWND hWndPalette 
);

Arguments:

Name Type Description
hIGear HIGEAR HIGEAR handle of image.
dwGrpID DWORD Identifier of group where to get display options for creating palette.
hWndPalette HWND Handle of palette window.

Return Value:

Returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

All pixel formats supported by ImageGear for C and C++.

(Has an effect for Indexed images only.)

Sample:

Palette Edit, Display

Example:

 
Copy Code
HIGEAR hIGear;   /* HIGEAR handle of image  */
HWND hWndPalette;  /* Handle of Palette window */
IG_GUI_palette_update ( hIGear, hWndPalette );
Is this page helpful?
Yes No
Thanks for your feedback.