AlphaBlend method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int __fastcall AlphaBlend(int iLeft, int iTop, int iWidth, int iHeight, LEADTyp::TBitmapHandle Bitmap, int iSrcLeft, int iSrcTop, int iOpacity);

Delphi Syntax

Function AlphaBlend(iLeft: integer; iTop: Integer; iWidth: Integer; iHeight: Integer; Bitmap: TBitmapHandle; iSrcLeft: Integer; iSrcTop: Integer; iOpacity: Integer): Integer;

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 images 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.

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, FeatherAlphaBlend method, CreateFadedMask method, FeatherAlphaBlendExt method

Topics:

Raster Images: Combining Images

 

Image Processing