AxHost::GetPictureFromIPicture Method (Object^)

 

Returns an Image corresponding to the specified OLE IPicture object.

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

protected:
static Image^ GetPictureFromIPicture(
	Object^ picture
)

Parameters

picture
Type: System::Object^

The IPicture to convert.

Return Value

Type: System.Drawing::Image^

An Image representing the IPicture.

You can use this method to convert IPictureDisp objects in addition to IPicture objects. This works because the IPictureDisp OLE interface is a subset of the IPicture interface. Converting IPictureDisp objects with this method is necessary because the GetPictureFromIPictureDisp does not work correctly at this time.

.NET Framework
Available since 1.1
Return to top
Show: