ImageGear for C and C++ on Linux v19.10 - Updated
IG_display_transparent_set
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Display Functions > IG_display_transparent_set

Use this function to set image transparent color.

Declaration:

 
Copy Code
AT_ERRCOUNT EXPORT ACCUAPI IG_display_transparent_set(
        HIGEAR hIGear,        
        LPAT_RGB lpRGB,         
        LPAT_BOOL lpEnabled         
);

Arguments:

Name Type Description
hIGear HIGEAR HIGEAR handle of image.
lpRGB LPAT_RGB Provide the RGB color values through which transparency have to be set.
lpEnabled LPAT_BOOL Enables or disables image transparency: TRUE - transparency enabled; FALSE - transparency disabled.

Return Value:

Returns the number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.

Supported Raster Image Formats:

This function does not process image pixels.

Remarks:

You have to use this API to write out a file with a transparency color set. For example when save image transparency information to a GIF file format.