This class write an image in a jpeg file. More...
#include <jpeg.hpp>
Classes | |
struct | destination_manager |
Destination manager that allow us to write in a std::ostream. More... | |
struct | options |
Parameters of the writing algorithm. More... | |
Public Member Functions | |
writer (const image &img) | |
Constructor. | |
writer (const image &img, std::ostream &f, const options &opt=options()) | |
Constructor. Save an image in a jpeg file. | |
void | save (std::ostream &f, const options &opt=options()) const |
Save an image in a jpeg file. | |
claw::graphic::jpeg::writer::writer | ( | const image & | img | ) |
Constructor.
img | The image in which the data will be stored. |
Definition at line 150 of file jpeg_writer.cpp.
claw::graphic::jpeg::writer::writer | ( | const image & | img, |
std::ostream & | f, | ||
const options & | opt = options() ) |
Constructor. Save an image in a jpeg file.
img | The image from which we read the data. |
f | The file in which we write the data. |
opt | Options about the saved file. |
Definition at line 160 of file jpeg_writer.cpp.
Save an image in a jpeg file.
f | Jpeg file. |
opt | Options about the saved file. |
Definition at line 172 of file jpeg_writer.cpp.