AxHost.GetPictureFromIPictureDisp(Object) 方法

定义

返回与指定的 OLE IPictureDisp 对象对应的 Image

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

要转换的 IPictureDisp

返回

Image

表示 IPictureDispImage

注解

此方法无法正常工作。 但是,可以使用该方法 GetPictureFromIPicture 将对象转换为 IPictureDisp 对象 Image,因为 IPictureDisp OLE 接口是接口的 IPicture 子集。

适用于

另请参阅