Image.clipboardPaste Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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');