A class for jpeg pictures. More...
#include <jpeg.hpp>
Classes | |
struct | error_manager |
Error handler that throw an exception instead of exiting the program. More... | |
class | reader |
This class read data from a jpeg file and store it in an image. More... | |
class | writer |
This class write an image in a jpeg file. More... | |
Public Member Functions | |
jpeg (unsigned int w, unsigned int h) | |
Constructor. Creates an empty image. | |
jpeg (const image &that) | |
Copy constructor. | |
jpeg (std::istream &f) | |
Constructor. Load an image from a jpeg file. | |
void | save (std::ostream &os, const writer::options &opt=writer::options()) const |
Save the image. |
A class for jpeg pictures.
Definition at line 51 of file jpeg.hpp.
claw::graphic::jpeg::jpeg | ( | unsigned int | w, | |
unsigned int | h | |||
) |
Constructor. Creates an empty image.
w | Image's width. | |
h | Image's height. |
Definition at line 39 of file jpeg.cpp.
00040 : claw::graphic::image(w, h) 00041 { 00042 00043 } // jpeg::jpeg() [constructor]
claw::graphic::jpeg::jpeg | ( | const image & | that | ) |
Copy constructor.
that | Image to copy from. |
Definition at line 50 of file jpeg.cpp.
00051 : claw::graphic::image(that) 00052 { 00053 00054 } // jpeg::jpeg() [copy constructor]
claw::graphic::jpeg::jpeg | ( | std::istream & | f | ) |
void claw::graphic::jpeg::save | ( | std::ostream & | f, | |
const writer::options & | opt = writer::options() | |||
) | const |
Save the image.
f | The file in which we write. | |
opt | Saving options. |
Definition at line 73 of file jpeg.cpp.
Referenced by claw::graphic::jpeg::writer::writer().