Copy

This method creates a copy of the currently allocated image within the TargetImage object instance and frees all previously allocated resources of TargetImage.

If rectangle information are provided, only the specified rectangle is copied.

Syntax

Copy (TargetImage As ISCBCroImage, SrcXOffset As Long, SrcYOffset As Long, Width As Long, Height As Long)
Parameter Description
TargetImage Target image to receive the copy of the image.

The object can either be deinitialized or contain any image data. All previously allocated resources of TargetImage are freed.

SrcXOffset Left X coordinate of the rectangle.
SrcYOffset Top Y coordinate of the rectangle.
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.