Image.copyImage Method

Copies the current image object.

Syntax

public int copyImage(Image image)

Run On

Client

Parameters

Return Value

Type: int
0 indicates success; otherwise, failure.

Examples

The following example creates two new images and then overwrites the contents of one image with the contents of the other.

Image img =  new Image(); 
Image img2 = new Image(); 
 
img.loadFile(@'C:\test.bmp'); 
img2.loadFile(@'C:\test2.bmp'); 
img2.copyImage(img); //img2 now the same as img

See Also

Image Class

Image.clipboardCopy Method