OleSavePictureFile function
Saves a picture to a file.
Syntax
HRESULT OleSavePictureFile( _In_ LPDISPATCH lpdispPicture, _In_ BSTR bstrFileName );
Parameters
- lpdispPicture [in]
-
Points to the IPictureDisp picture object.
- bstrFileName [in]
-
The name of the file to save the picture to.
Return value
This method returns standard COM error codes in addition to the following values.
| Return code | Description |
|---|---|
|
The method completed successfully. |
|
lpdispPicture is NULL. |
|
bstrFileName cannot be found. |
Requirements
|
Header |
|
|---|---|
|
Library |
|
|
DLL |
|
Show: