v2.37
|
|
A compressed image data container. More...
Public Member Functions | |
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
HRESULT LoadFromData | ( | [in] SAFEARRAY(byte) | data, |
[in] enum ImageFormat | format ) |
Loads an image from the given binary data.
[in] | data | Binary data to load the image from. |
[in] | format | Format of the image. |
HRESULT LoadFromFile | ( | [in] BSTR | path_ | ) |
Loads an image from the given image file.
[in] | path_ | Path to the image file. |
HRESULT SaveToData | ( | [in] enum ImageFormat | format, |
[out, retval] SAFEARRAY(byte) * | pData ) |
Saves an image to data.
[in] | format | Format of the image received as data. |
[out] | pData | Bytes array of the saved image. |
HRESULT SaveToFile | ( | [in] BSTR | path_, |
[in] enum ImageFormat | format ) |
Saves an image to the given image file.
[in] | path_ | Path to the file to save the image. |
[in] | format | Format of the image. |