OleLoadPictureFile function
Creates an IPictureDisp object from a picture file on disk.
Syntax
HRESULT OleLoadPictureFile( _In_ VARIANT varFileName, _Out_ LPDISPATCH *lplpdispPicture );
Parameters
- varFileName [in]
-
The path and name of the picture file to load.
- lplpdispPicture [out]
-
The location that receives a pointer to the IPictureDisp object.
Return value
This method returns standard COM error codes in addition to the following values.
| Return code | Description |
|---|---|
|
The method completed successfully. |
|
Invalid picture file. |
Remarks
Recognized graphic formats include bitmap (.bmp), JPEG (.jpg), GIF (.gif), and PGN (.png) files.
Requirements
|
Header |
|
|---|---|
|
Library |
|
|
DLL |
|
Show: