#include <ImFusion/IO/JpegIO.h>
Class for reading and writing JPEG images.
More...
Class for reading and writing JPEG images.
|
| static std::unique_ptr< MemImage > | readImage (const std::string &filename) |
| | Read JPEG image from file.
|
| |
| static std::unique_ptr< MemImage > | readImage (const ByteBuffer &buffer) |
| | Read JPEG image from memory.
|
| |
| static bool | readImage (const ByteBuffer &buffer, MemImage *&img, std::string *header=0) |
| | Read JPEG image from buffer.
|
| |
| static bool | readImage (const std::string &filename, MemImage *&img, std::string *header=0) |
| | Read JPEG image from file.
|
| |
| static bool | writeImage (const std::string &filename, const MemImage *img, const std::string &header="", int sourceQuality=90) |
| | Write JPEG image to file.
|
| |
| static bool | writeImage (ByteBuffer &buffer, const MemImage *img, const std::string &header="", int sourceQuality=90) |
| | Write JPEG image to memory buffer.
|
| |
◆ readImage() [1/4]
Read JPEG image from file.
- Parameters
-
- Returns
- the image read from file
◆ readImage() [2/4]
Read JPEG image from memory.
- Parameters
-
| buffer | temporary placeholder of the JPEG data |
- Returns
- the image read from memory
◆ readImage() [3/4]
Read JPEG image from buffer.
- Parameters
-
| buffer | temporary placeholder of the JPEG data |
| [out] | img | reference to image pointer which will receive the loaded image |
| [out] | header | optional pointer to string which is to be placed in the header |
- Returns
- true if successful, false otherwise
◆ readImage() [4/4]
Read JPEG image from file.
- Parameters
-
| filename | file name |
| [out] | img | reference to image pointer which will receive the loaded image |
| [out] | header | optional pointer to string which is to be placed in the header |
- Returns
- true if successful, false otherwise
◆ writeImage() [1/2]
Write JPEG image to file.
- Parameters
-
- Returns
- true if successful, false otherwise
◆ writeImage() [2/2]
Write JPEG image to memory buffer.
- Parameters
-
| [out] | buffer | temporary placeholder allocated by the JPEG library. |
| img | Image to be written |
| header | optional string which is to be placed in the header |
| sourceQuality | quality indicator |
The documentation for this class was generated from the following file: