Image.clipboardCopy 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.
Copies an image to the clipboard.
public:
virtual int clipboardCopy();
public virtual int clipboardCopy ();
abstract member clipboardCopy : unit -> int
override this.clipboardCopy : unit -> int
Public Overridable Function clipboardCopy () As Integer
Returns
0 indicates success; otherwise, failure.
Remarks
The following example copies the content from a file that is named Test.bmp.
Image img = new Image();
img.loadFile(@'C:\Test.bmp');
img.clipboardCopy();
// Image can now be pasted into an application.