A compressed image data container.
More...
|
| HRESULT | LoadFromData ([in] SAFEARRAY(byte) data, [in] enum ImageFormat format) |
| | Loads an image from the given binary data.
|
| |
| HRESULT | LoadFromFile ([in] BSTR path_) |
| | Loads an image from the given image file.
|
| |
| HRESULT | SaveToData ([in] enum ImageFormat format, [out, retval] SAFEARRAY(byte) *pData) |
| | Saves an image to data.
|
| |
| HRESULT | SaveToFile ([in] BSTR path_, [in] enum ImageFormat format) |
| | Saves an image to the given image file.
|
| |
A compressed image data container.
The IAction interface uses IImage to represent icons. The same image can be used by multiple actions simultaneously.
/sa IAction
◆ LoadFromData()
| HRESULT LoadFromData |
( |
[in] SAFEARRAY(byte) | data, |
|
|
[in] enum ImageFormat | format ) |
Loads an image from the given binary data.
- Parameters
-
| [in] | data | Binary data to load the image from. |
| [in] | format | Format of the image. |
◆ LoadFromFile()
| HRESULT LoadFromFile |
( |
[in] BSTR | path_ | ) |
|
Loads an image from the given image file.
- Parameters
-
| [in] | path_ | Path to the image file. |
◆ SaveToData()
| HRESULT SaveToData |
( |
[in] enum ImageFormat | format, |
|
|
[out, retval] SAFEARRAY(byte) * | pData ) |
Saves an image to data.
- Parameters
-
| [in] | format | Format of the image received as data. |
| [out] | pData | Bytes array of the saved image. |
◆ SaveToFile()
| HRESULT SaveToFile |
( |
[in] BSTR | path_, |
|
|
[in] enum ImageFormat | format ) |
Saves an image to the given image file.
- Parameters
-
| [in] | path_ | Path to the file to save the image. |
| [in] | format | Format of the image. |