Redigera

Dela via


ClipboardProxy.SetImage(Image) Method

Definition

Writes an image to the Clipboard.

public:
 void SetImage(System::Drawing::Image ^ image);
public void SetImage (System.Drawing.Image image);
member this.SetImage : System.Drawing.Image -> unit
Public Sub SetImage (image As Image)

Parameters

image
Image

Image. Image to be written. Required.

Examples

This example writes the image coolPicture to the Clipboard.

My.Computer.Clipboard.SetImage(coolPicture)

This example depends on the existence of the image coolPicture.

Remarks

Important

Because the Clipboard can be accessed by other users, do not use it to store sensitive information, such as passwords or confidential data.

Availability by Project Type

Project type Available
Windows Application Yes
Class Library Yes
Console Application Yes
Windows Control Library Yes
Web Control Library No
Windows Service Yes
Web Site No

Applies to

See also