A compressed image data container.
More...
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 IImage::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 IImage::LoadFromFile |
( |
[in] BSTR |
path_ | ) |
|
Loads an image from the given image file.
- Parameters
-
[in] | path_ | Path to the image file. |
◆ SaveToData()
HRESULT IImage::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 IImage::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. |