System.Windows.Forms.AxHost.GetPictureFromIPictureDisp Method

Returns an System.Drawing.Image corresponding to the specified OLE IPictureDisp object.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
protected static System.Drawing.Image GetPictureFromIPictureDisp (object picture)

Parameters

picture
The IPictureDisp to convert.

Returns

An System.Drawing.Image representing the IPictureDisp.

Remarks

This method does not work correctly. You can use the AxHost.GetPictureFromIPicture(object) method to convert an IPictureDisp object into an System.Drawing.Image, however, because the IPictureDisp OLE interface is a subset of the IPicture interface.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0