|
Claw
1.7.3
|
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. More... | |
| jpeg (const image &that) | |
| Copy constructor. More... | |
| jpeg (std::istream &f) | |
| Constructor. Load an image from a jpeg file. More... | |
| void | save (std::ostream &os, const writer::options &opt=writer::options()) const |
| Save the image. More... | |
Public Member Functions inherited from claw::graphic::image | |
| image () | |
| Constructor. Creates an image without datas. More... | |
| image (unsigned int w, unsigned int h) | |
| Constructor. Creates an empty image. More... | |
| image (std::istream &f) | |
| Constructor. Reads an image from an input stream. More... | |
| void | swap (image &that) |
| Swap the content of two images. More... | |
| unsigned int | width () const |
| Gets image's width. | |
| unsigned int | height () const |
| Gets image's height. | |
| scanline & | operator[] (unsigned int i) |
| Gets a line of the image. | |
| const scanline & | operator[] (unsigned int i) const |
| Gets a line of the image. | |
| iterator | begin () |
| Get an iterator pointing on the first pixel. | |
| iterator | end () |
| Get an iterator pointing just past the last pixel. | |
| const_iterator | begin () const |
| Get an iterator pointing on the first pixel. | |
| const_iterator | end () const |
| Get an iterator pointing just past the last pixel. | |
| void | merge (const image &that) |
| Merge an image on the current image. More... | |
| void | merge (const image &that, const math::coordinate_2d< int > &pos) |
| Merge an image on the current image. More... | |
| void | partial_copy (const image &that, const math::coordinate_2d< int > &pos) |
| Copy an image on the current image. More... | |
| void | flip () |
| Set the image upside down. | |
| void | fill (const math::rectangle< int > r, const pixel_type &c) |
| Fill an area of the image with a given color. More... | |
| void | set_size (unsigned int w, unsigned int h) |
| Set a new size to the image. More... | |
| void | load (std::istream &f) |
| Read the image from a stream. More... | |
Additional Inherited Members | |
Public Types inherited from claw::graphic::image | |
| typedef rgba_pixel | pixel_type |
| The type representing the colors of the pixels in the image. | |
| typedef base_iterator< image, pixel_type > | iterator |
| The type of the iterator on the pixels of the image. More... | |
| typedef base_iterator< const image, const pixel_type > | const_iterator |
| The type of the iterator to access constant pixels. More... | |
| claw::graphic::jpeg::jpeg | ( | unsigned int | w, |
| unsigned int | h | ||
| ) |
| claw::graphic::jpeg::jpeg | ( | const image & | that | ) |
| 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().
1.8.5