AxHost.GetPictureFromIPictureDisp(Object) 方法

定义

返回与指定的 OLE IPictureDisp 对象对应的 ImageReturns an Image corresponding to the specified OLE IPictureDisp object.

protected:
 static System::Drawing::Image ^ GetPictureFromIPictureDisp(System::Object ^ picture);
protected static System.Drawing.Image GetPictureFromIPictureDisp (object picture);
static member GetPictureFromIPictureDisp : obj -> System.Drawing.Image
Protected Shared Function GetPictureFromIPictureDisp (picture As Object) As Image

参数

picture
Object

要转换的 IPictureDispThe IPictureDisp to convert.

返回

表示 ImageIPictureDispAn Image representing the IPictureDisp.

注解

此方法不能正常工作。This method does not work correctly. 但是,可以使用GetPictureFromIPicture方法IPictureDisp将对象Image转换为,因为IPictureDisp OLE 接口是IPicture接口的子集。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.

适用于

另请参阅