Underlay method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int Underlay (TBitmapHandle Bitmap, unsigned uFlags);

Delphi Syntax

Function Underlay (Bitmap:TBitmapHandle; uFlags: L_UINT): L_INT;

Overview

Refer to Combining Images.

Remarks

Combines two bitmaps so that one appears to be an underlying texture for the other. This is most effective when the underlying image is a filtered one, such as an embossed image.

This method changes the colors of the underlay to grayscale as it combines the images. It updates the current bitmap, leaving the second bitmap (Bitmap) unchanged. The underlying image can either be stretched or tiled to fill the target image, as shown in the following illustration:

image\undlay.gif

If a region is defined for the target bitmap, the underlay is applied to the region, not to the whole bitmap. (Any region defined for the underlay bitmap is ignored.)

See Also

Topics:

Raster Images: Combining Images

 

Examining and Altering Bitmaps

 

Applying Artistic Effects