Combine method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int Combine (int nLeft, int nTop, int nWidth, int nHeight, LEADTyp::TBitmapHandle pBitmap, int nSrcLeft, int nSrcTop, int iFlags);

Delphi Syntax

Combine (nLeft, nTop, nWidth, nHeight: Integer, pBitmap: BitmapHandle, nSrcLeft, nSrcTop: Integer; iFlags: Longint): Integer;

Overview

Refer to Combining Images.

Remarks

Combines image data from two bitmaps, letting you specify the areas to be combined and the operations to be performed when combining the data.

For example, suppose you use the SpatialFilter method to apply an edge detection filter. You can then use this method to combine the resulting bitmap with the original one to produce an image with hard edges.

This method combines the data byte-by-byte. Both images must have the same color resolution. Images that are 24 bits per pixel are the easiest to combine. For other color resolutions, you must ensure that the pixel and byte boundaries are aligned on the rectangle borders. Both images must use the same palette, if a palette is required.

For a simple paste, use CB_OP_ADD and CB_DST_0 as the flags.

If a region is defined for the target bitmap, the combine applies only to the region. (Any region defined in the source bitmap is ignored.)

See Also

Elements:

ApplyTransformationParameters method, GetMarksCenterMass method, GetTransformationParameters method, IsRegMark method, SearchRegMarks method

Topics:

Raster Images: Copying Images

 

Raster Images: Combining Images

 

Implementing Transparency

 

Examining and Altering Bitmaps

 

Removing Noise

 

Detecting and Enhancing Edges and Lines

 

Raster Image Functions: Document Imaging

 

Detecting Registration Marks