ImageGear for C and C++ on Windows v20.5 - Updated
IG_load_alpha_mode_set
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.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_load_alpha_mode_set( enumIGAlphaMode Mode);

Arguments:

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.

Sample:

Filter

Example:

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

Remarks:

See also IG_load_alpha_mode_get function.

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