Insert

This method copies the specified part of the image to TargetImage. TargetImage is not resized and all image information outside the specified rectangle is not changed.

Use this method to merge two images.

The TargetImage object must have the appropriate size to receive the image data and must have the same image type like the source image.

Syntax

Insert (TargetImage As ISCBCroImage, TargetXOffset As Long, TargetYOffset As Long, SrcXOffset As Long, SrcYOffset As Long, Width As Long, Height As Long)
Parameter Description

TargetImage

Interface pointer to target image, which receives the copy of the image. No additional memory is allocated for this image.

Use the Create method to allocate memory for the image.

TargetXOffset

Integer value specifying the Left X coordinate of the rectangle in the target image.

TargetYOffset

Integer value specifying the Top Y coordinate of the rectangle in the target image.

SrcXOffset

Integer value specifying the Left X coordinate of the rectangle within the source image.

SrcYOffset

Integer value specifying the Top Y coordinate of the rectangle within the source image.

Width

Width of the rectangle to copy. Use 0 to copy the entire image.

Height

Height of the rectangle to copy. Use 0 to copy the entire image.