TextureAlphaBlend method (ILEADRasterProcess)

Visual Basic example

Visual C++ example

 

Syntax

short TextureAlphaBlend (ILEADRaster * pRasterDst, short iXDst, short iYDst, short iWidth, short iHeight, ILEADRaster * pRasterSrc, short iXSrc, short iYSrc, ILEADRaster * pRasterMask, short iOpacity, ILEADRaster * pRasterUnderlay, short iXOffset, short iYOffset);

Overview

Refer to Combining Images

Remarks

(Raster Pro and above toolkits) Combines image data from pRasterMask and pRasterUnderlay with an underlay effect. The result is used as a fade mask that will be used to combine pRasterSrc and pRasterDst with variable opacity. The result is combined again with pRasterDst using a constant opacity specified in iOpacity.

To combine two bitmaps with a fixed opacity, use the AlphaBlend method.

To combine two bitmaps with feathering, use the FeatherAlphaBlend method.

To create a bitmap that contains a fade mask, use CreateFadedMask.

This method supports 12 and 16-bit grayscale and 48 and 64-bit color images. Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits.

This method will use iXOffset and iYOffset to calculate the parts of the underlay bitmap that will be applied to the mask bitmap. Using iXOffset and iYOffset will give the user the ability to give the feel of continuous texture when applying this method to neighboring parts inside the destination bitmap using the same or different mask.

This method does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this method.

See Also

Elements:

Underlay method, Combine method, AlphaBlend method, FeatherAlphaBlend method, CreateFadedMask method.

Topics:

Raster Images: Combining Images