Share via


Image.clipboardCopy Method

Definition

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.

Applies to