Jaa


Image.clipboardPaste Method

Definition

Overwrites an existing image with the content of the system clipboard.

public:
 virtual int clipboardPaste();
public virtual int clipboardPaste ();
abstract member clipboardPaste : unit -> int
override this.clipboardPaste : unit -> int
Public Overridable Function clipboardPaste () As Integer

Returns

0 indicates success; otherwise, failure.

Remarks

For the method to be used successfully, the clipboard must have content.

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');

Applies to