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

Glossary Item Box

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.

©2014. Accusoft Corporation. All Rights Reserved.