共用方式為


Support.ImageToIPicture(Image) 方法

定義

警告

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

取得指定之 Image 的 OLE IPicture 物件。

public:
 static System::Object ^ ImageToIPicture(System::Drawing::Image ^ img);
public static object ImageToIPicture (System.Drawing.Image img);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static object ImageToIPicture (System.Drawing.Image img);
static member ImageToIPicture : System.Drawing.Image -> obj
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member ImageToIPicture : System.Drawing.Image -> obj
Public Function ImageToIPicture (img As Image) As Object

參數

img
Image

Image

傳回

表示 OLE IPicture 物件的 Object

屬性

備註

在 Visual Basic 6.0 中,OLEIPicture物件可以用來指定映像,在 Visual Basic 中,OLEIPicture格式不受支援。 升級工具會使用此函式之間轉換IPictureImage

注意

Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式和物件都是供這些工具使用,以便從 Visual Basic 6.0 升級至 Visual Basic 2008。 在大多數情況下,這些函式和物件會複製在 .NET Framework 其他命名空間中可以找到的功能。 只有當 Visual Basic 6.0 程式碼模型與 .NET Framework 實作有顯著差異時,才會需要這些函式和物件。

適用於