ImageGear Professional v18.2 > API Reference Guide > Display Component API Reference > Display Component Objects > IGPageDisplay Object > IGPageDisplay Methods > HandlePalette Method |
Handles palette messages from the operating system. For the Windows platform, this function should be called when WM_QUERYNEWPALETTE and WM_PALETTECHANGED messages are processed. Handling of those messages is extremely important for palette based devices.
HandlePalette(hWnd As Long, hDC As Long, Mode As
enumPaletteModes) As Boolean
Name | Description |
---|---|
hWnd | Handle of window where image is displayed. |
hDC | Handle of device context where image is drawn. |
Mode | New value of PaletteMode to set. See enumIGDsplPaletteModes Enumeration. Possible value is either IG_DSPL_PALETTE_HIGH or IG_DSPL_PALETTE_LOW. Please note that this new value is assigned only if the current value of PaletteMode is not IG_DSPL_PALETTE_DISABLE. If the current value is IG_DSPL_PALETTE_DISABLE then the function does not perform any action. |
True if new palette has been realized, and False if otherwise.
N/A
Display