AxHost.GetPictureFromIPictureDisp Method (Object)


Returns an Image corresponding to the specified OLE IPictureDisp object.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

protected static Image GetPictureFromIPictureDisp(
	object picture


Type: System.Object

The IPictureDisp to convert.

Return Value

Type: System.Drawing.Image

An Image representing the IPictureDisp.

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

.NET Framework
Available since 1.1
Return to top