ImageGear Professional for Windows ActiveX
Merge Method

Description:

Merges or "places" one image into another. The images do not have to be the same size but do have to be the same bit depth. srcPage is drawn into dstPage. The top left corner of dstPage will be placed at dstLeft, dstTop of dstPage. Any over-hanging pixels of srcPage will be clipped, automatically.

This method takes into account the ROI settings of srcPage object, that are accessible via the IGPage Object.ROI Property. By default ROI is set to the entire image.

Syntax:

      Merge (ByVal dstPage As IGPage, ByVal srcPage As IGPage, ByVal
dstLeft As Long, ByVal dstTop As Long, ByVal Mode As
enumIGMergeModes)

Parameters:

Name Description
dstPage Reference to IGPage Object.
srcPage Reference to IGPage Object to be merged into dstPage; must have same bit depth as dstPage.
dstLeft The X coordinate within the destination image at which to place the upper - left corner of the source image.
dstTop The Y coordinate within the destination image at which to place the upper - left corner of the source image.
Mode Specifies what type of arithmetic operation (merge method) to perform on all pixels of dstPage that have been intersected with pixels from srcPage.

Return Value:

N/A

Bits Per Pixel:

1, 8-bit gray level, 24

Sample:

Image Processing and Effects.

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback