AxHost.GetPictureFromIPictureDisp(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns 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);
protected static System.Drawing.Image? GetPictureFromIPictureDisp (object? picture);
static member GetPictureFromIPictureDisp : obj -> System.Drawing.Image
Protected Shared Function GetPictureFromIPictureDisp (picture As Object) As Image
Parameters
- picture
- Object
The IPictureDisp
to convert.
Returns
An Image representing the IPictureDisp
.
Remarks
This method does not work correctly. 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.
Applies to
See also
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.