ImageGear Professional for Windows ActiveX
AddAlpha Method

Description:

Adds a new alpha channel to the IGPage Object. The position where to put new alpha channel is specified via method's parameter and can be within the [0..AlphaCount Property] range. If there is alpha channel stored at the Position already, the method's behavior depends on the bShift parameter. If this parameter is True, then old alpha is shifted up along with alphas stored after it (if they exist). If this parameter is False, then old alpha channel is replaced with the new one. Either way IGPage Object representing alpha channel is duplicated and its copy is stored in the collection, not the original object.

The entire IGPage Object is duplicated including image data.

Syntax:

AddAlpha (pNewAlpha As IGPage, Position As long, bShift As
Boolean)

Parameters:

Name Description
pNewAlpha IGPage Object representing the alpha channel to be added.
Position Position where to put new alpha channel.
bShift Indicates whether alpha channels should be shifted.

Return Value:

N/A

Bits Per Pixel:

All

Sample:

Core

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback