Bewerken

Delen via


DataObject.GetImage Method

Definition

Retrieves an image from the data object.

public:
 virtual System::Drawing::Image ^ GetImage();
public virtual System.Drawing.Image GetImage ();
public virtual System.Drawing.Image? GetImage ();
abstract member GetImage : unit -> System.Drawing.Image
override this.GetImage : unit -> System.Drawing.Image
Public Overridable Function GetImage () As Image

Returns

An Image representing the image data in the data object or null if the data object does not contain any data that is in the Bitmap format or can be converted to that format.

Remarks

Use the ContainsImage method to determine whether the data object contains image data before retrieving it with this method.

Use the SetImage method to add image data to the data object.

Applies to

See also