FeatherAlphaBlendExt method (Main Control)

C++ Builder Example

Delphi Example

 

Builder Syntax

bool FeatherAlphaBlendExt (int nXDst, int nYDst, int nWidth, int nHeight, Leadtyp::TBitmapHandle BitmapSrc, int nXSrc, int nYSrc, Leadtyp::TBitmapHandle BitmapMask, int nXMaskShift, int nYMaskShift);

Delphi Syntax

Function FeatherAlphaBlendExt(nXDst: L_INT; nYDst: L_INT; nWidth: L_INT; nHeight: L_INT; BitmapSrc: TBitmapHandle; nXSrc: L_INT; nYSrc: L_INT; BitmapMask: TBitmapHandle; nXMaskShift: L_INT; nYMaskShift: L_INT): L_INT;

Overview

Refer to Combining Images

Remarks

Combines image data from two bitmaps with feathering, by combining the two bitmaps with a variable opacity that depends on a fade mask with the region of the fade mask specified. This method is available in the Raster Pro and above toolkits.

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

The FeatherAlphaBlendExt method achieves feathering between two bitmaps by using variable opacity values, obtained from the fade mask referenced by BitmapMask and specifying the origin coordinates of the region of the fade mask bitmap referenced by the values of nXMaskShift and nYMaskShift parameters.

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

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 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:

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

Topics:

Raster Images: Combining Images

 

Image Processing

 

Implementing Transparency

 

PNG Files and Transparency