Available in the LEADTOOLS Imaging toolkit. |
Combine method (Main Control)
Visual Basic
example
Visual C++ 4.0 example
Visual J++ example
Syntax short Combine (float fLeft, float fTop, float fWidth, float fHeight, OLE_HANDLE hBitmap, float fSrcLeft, float fSrcTop, long iFlags);
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 either the source or destination bitmap, or both bitmaps, the combine applies only to the intersection of the regions.
See Also
Topics: Raster
Images: Copying Images
Raster Images: Combining Images
Implementing Transparency
Examining and Altering Bitmaps
Removing Noise
Detecting and Enhancing Edges and Lines