|
CLAW Library (a C++ Library Absolutely Wonderful) 1.5.5
|
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. | |
| 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.
: claw::graphic::image(w, h) { } // 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.
: claw::graphic::image(that) { } // 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().
{
writer( *this, f, opt );
} // jpeg::save()
1.7.3