ImageGear for C and C++ on Linux v20.0 - Updated
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Display Functions > IG_dspl_foreground_set

This function sets the foreground color.


Copy Code
AT_ERRCOUNT  ACCUAPI  IG_dspl_foreground_set(
        [IN] HIGEAR hIGear,
        [IN] DWORD dwGrpID,
        [IN] const LPAT_RGB lpFrColor


Name Type Description
hIGear HIGEAR ImageGear handle of an image.
dwGrpID DWORD Identifier of the group in which to set options.
lpFrColor const LPAT_RGB The new value of FrColor to set. If NULL, then this parameter is ignored.

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++.


Copy Code
HIGEAR           hIGear;     /* HIGEAR handle of image   */ 
DWORD           nGrpID;      /* display group identifier  */
AT_RGB          FrColor;
FrColor.r = FrColor.g = FrColor.b;
IG_dspl_foreground_set( hIGear, nGrpID, &FrColor );
Is this page helpful?
Yes No
Thanks for your feedback.