Image.clipboardPaste Method
Overwrites an existing image with the content of the system clipboard.
Syntax
public int clipboardPaste()
Run On
Client
Return Value
Type: int
0 indicates success; otherwise, failure.
Remarks
For the method to be used successfully, the clipboard must have content.
Examples
The following example creates a new image file by using contents previously copied to the clipboard.
Image img = new Image();
// Copy an image to the clipboard before this test
img.clipboardPaste();
img.saveFile(@'C:\test.jpg');