AlphaBlend method (Main Control)

Visual Basic example
Visual C++ 5.0 example

Syntax short AlphaBlend(float fLeft, float fTop, float fWidth, float fHeight, OLE_HANDLE hBitmap, float fSrcLeft, float fSrcTop, short iOpacity);

Overview:  Refer to Combining Images.

Remarks

Combines image data from two bitmaps, using the specified opacity value.

The opacity determines how much the destination bitmap will show through the source bitmap. For example, if the opacity is 255 (completely opaque) then the source image will appear and the destination image will not show through the source image at all. If the opacity is 128 (half opacity), then the pixels for that area will consist of 50 percent from the source image and 50 percent from the destination image.

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

See Also

Elements:  Underlay method, Combine method, FeatherAlphaBlend method, CreateFadedMask method

Topics:  Raster Images: Combining Images
Image Processing