A class for targa pictures.
More...
#include <targa.hpp>
List of all members.
Classes |
| class | file_structure |
| | Tool class used for defining the structures of the datas stored in a targa file.
|
| struct | pixel16 |
| | A pixel color in 16 bits in targa files.
|
| struct | pixel8 |
| | A pixel color in 8 bits in targa files.
|
| class | reader |
| | This class read data from a targa file and store it in an image. More...
|
| class | writer |
| | This class write an image in a targa file. More...
|
Public Member Functions |
| | targa (unsigned int w, unsigned int h) |
| | Constructor. Creates an empty image.
|
| | targa (const image &that) |
| | Copy constructor.
|
| | targa (std::istream &f) |
| | Constructor. Load an image from a targa file.
|
| void | save (std::ostream &os, bool rle) const |
| | Save the content of the image in a stream.
|
Detailed Description
A class for targa pictures.
- Author:
- Julien Jorge
Definition at line 48 of file targa.hpp.
Constructor & Destructor Documentation
Constructor. Creates an empty image.
- Parameters:
-
| w | Image's width. |
| h | Image's height. |
- Precondition:
- w > 0 and h > 0
Definition at line 39 of file targa.cpp.
Copy constructor.
- Parameters:
-
Definition at line 50 of file targa.cpp.
Constructor. Load an image from a targa file.
- Parameters:
-
Definition at line 61 of file targa.cpp.
Member Function Documentation
The documentation for this class was generated from the following files: