Support.IPictureToImage(Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862
會對特定 OLE Image 物件取得 一個IPicture。
public:
static System::Drawing::Image ^ IPictureToImage(System::Object ^ pict);
public static System.Drawing.Image IPictureToImage(object pict);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static System.Drawing.Image IPictureToImage(object pict);
static member IPictureToImage : obj -> System.Drawing.Image
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member IPictureToImage : obj -> System.Drawing.Image
Public Function IPictureToImage (pict As Object) As Image
參數
- pict
- Object
一個 OLE IPicture 物件。
傳回
一個被轉換成影像的物件。
- 屬性
備註
在 Visual Basic 6.0 中,可以使用 OLE IPicture 物件來指定映像;在 Visual Basic 中,OLE的 IPicture 格式已不再支援。 此函數被升級工具用來在 與 IPictureImage之間轉換。
Note
Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式與物件,供工具從 Visual Basic 6.0 升級至 Visual Basic 2008 使用。 大多數情況下,這些函式和物件會重複你在 .NET Framework 中其他命名空間中能找到的功能。 只有當 Visual Basic 6.0 的程式碼模型與 .NET Framework 實作有顯著差異時,才需要使用這些工具。