DataObject.GetImage 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.
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.