FeatherAlphaBlend method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int __fastcall FeatherAlphaBlend(int iLeft, int iTop, int iWidth, int iHeight, LEADTyp::TBitmapHandle BitmapSrc, int iSrcLeft, int iSrcTop, LEADTyp::TBitmapHandle BitmapMask);

Delphi Syntax

Function FeatherAlphaBlend(iLeft: Integer; iTop: Integer; iWidth: Integer; iHeight: Integer; BitmapSrc: TBitmapHandle; iSrcLeft: Integer; iSrcTop: Integer; BitmapMask: TBitmapHandle): Integer;

Overview

Refer to Combining Images.

Remarks

(DigitalPaint only) Combines image data from two bitmaps with feathering, by combining the two bitmaps with a variable opacity that depends on a fade mask. This method is only available in the DigitalPaint products.

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

The FeatherAlphaBlend method achieves feathering between two bitmaps by using variable opacity values, obtained from the fade mask referenced by BitmapMask.

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

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

Topics:

Raster Images: Combining Images

 

Implementing Transparency

 

PNG Files and Transparency

 

Image Processing