Claw
1.7.3
|
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 168 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 182 of file jpeg_writer.cpp.
References claw::graphic::jpeg::save().
Save an image in a jpeg file.
f | Jpeg file. |
opt | Options about the saved file. |
Definition at line 195 of file jpeg_writer.cpp.
References CLAW_EXCEPTION, CLAW_PRECOND, claw::graphic::jpeg::error_manager::error_string, claw::graphic::jpeg__error_manager__error_exit(), claw::graphic::jpeg::error_manager::pub, and claw::graphic::jpeg::error_manager::setjmp_buffer.