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

This function instructs ImageGear to load or ignore alpha channel when loading an image that contains one.


Copy Code
AT_ERRCOUNT ACCUAPI IG_load_alpha_mode_set( enumIGAlphaMode Mode);


Name Type Description
Mode enumIGAlphaMode Alpha loading mode to be set. IG_ALPHA_MODE_KEEP (default) forces Alpha channel if it is present; IG_ALPHA_MODE_IGNORE ignores Alpha channel.

Return Value:

Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

This function does not process image pixels.


Copy Code
/* Ignore Alpha channel when loading: */ 
IG_load_alpha_mode_set (IG_ALPHA_MODE_IGNORE ); 


See also IG_load_alpha_mode_get function.

Is this page helpful?
Yes No
Thanks for your feedback.