ImageGear Professional DLL v18.1 for Windows
IG_dspl_palette_set
Send Feedback
ImageGear Professional v18.1 > API Reference Guide > Core Component API Reference > Core Component Functions Reference > Display Functions > IG_dspl_palette_set

Glossary Item Box

This function sets the new palette options.

Declaration:

  Copy Code
AT_ERRCOUNT  ACCUAPI  IG_dspl_palette_set(
        [IN] HIGEAR hIGear,
        [IN] DWORD dwGrpID,
        [IN] AT_MODE nPalMode,
        [IN] HPALETTE hPalette
);

Arguments:

Name Type Description
hIGear HIGEAR ImageGear handle of image.
dwGrpID DWORD Identifier of group in which to set palette options.
nPalMode AT_MODE New value of PaletteMode to set. Possible values are:
  • IG_DSPL_PALETTE_HIGH
  • IG_DSPL_PALETTE_LOW
  • IG_DSPL_PALETTE_DISABLE
hPalette HPALETTE New value of DevicePalette option. Possible value is NULL or valid OS-dependent palette handle. Please note that the application code is responsible for removing all the resources allocated for DevicePalette if it is not NULL.

Return Value:

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

Supported Raster Image Formats:

All pixel formats supported by ImageGear Professional.

Sample:

Medical, MFC

Example:

  Copy Code
HIGEAR            hIGear;    /* HIGEAR handle of image  */ 
DWORD           nGrpID;    /* display group identifier  */
 ...
/* disable palette realization */
IG_dspl_palette_set( hIGear, nGrpID, IG_DSPL_PALETTE_DISABLE, NULL );
 ...
©2014. Accusoft Corporation. All Rights Reserved.