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.