Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Saves a picture to a file.
Syntax
WINOLECTLAPI OleSavePictureFile(
[in] LPDISPATCH lpdispPicture,
[in] BSTR bstrFileName
);
Parameters
[in] lpdispPicture
Points to the IPictureDisp picture object.
[in] bstrFileName
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
| Requirement | Value |
|---|---|
| Target Platform | Windows |
| Header | olectl.h |
| Library | OleAut32.lib |
| DLL | OleAut32.dll |