ImageGear Professional for Windows ActiveX
HandlePalette Method

Description:

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.

Syntax:

      HandlePalette(hWnd As Long, hDC As Long, Mode As
enumPaletteModes) As Boolean

Parameters:

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.

Return Value:

True if new palette has been realized, and False if otherwise.

Bits Per Pixel:

N/A

Sample:

Display

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback