#include <pcx.hpp>

Definition at line 49 of file pcx.hpp.
Public Member Functions | |
| pcx (unsigned int w, unsigned int h) | |
| Constructor. Creates an empty image. | |
| pcx (const image &that) | |
| Copy constructor. | |
| pcx (std::istream &f) | |
| Constructor. Load an image from a pcx file. | |
| void | save (std::ostream &os) const |
| Save the content of the image in a stream. | |
Private Types | |
| enum | format_version { v_2_5 = 0, v_2_8_with_palette = 2, v_2_8_without_palette = 3, v_win = 4, v_3_0 = 5 } |
| typedef unsigned_integer_of_size < 8 >::type | u_int_8 |
| typedef unsigned_integer_of_size < 16 >::type | u_int_16 |
| typedef integer_of_size< 8 >::type | int_8 |
| typedef integer_of_size< 16 >::type | int_16 |
| typedef color_palette< pixel32 > | color_palette32 |
| A color palette of RGBA colors. | |
| typedef std::vector< u_int_8 > | color_plane_type |
| The type in which we store a scan line of a color plane. | |
Classes | |
| class | header |
| Header of a pcx file. More... | |
| class | reader |
| This class read data from a pcx file and store it in an image. More... | |
| class | writer |
| This class write an image in a pcx file. More... | |
typedef unsigned_integer_of_size<8>::type claw::graphic::pcx::u_int_8 [private] |
typedef unsigned_integer_of_size<16>::type claw::graphic::pcx::u_int_16 [private] |
typedef integer_of_size<8>::type claw::graphic::pcx::int_8 [private] |
typedef integer_of_size<16>::type claw::graphic::pcx::int_16 [private] |
typedef color_palette<pixel32> claw::graphic::pcx::color_palette32 [private] |
typedef std::vector<u_int_8> claw::graphic::pcx::color_plane_type [private] |
enum claw::graphic::pcx::format_version [private] |
Definition at line 59 of file pcx.hpp.
00060 { 00061 v_2_5 = 0, 00062 v_2_8_with_palette = 2, 00063 v_2_8_without_palette = 3, 00064 v_win = 4, 00065 v_3_0 = 5 00066 }; // enum format_version
| claw::graphic::pcx::pcx | ( | 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 pcx.cpp.
00040 : claw::graphic::image(w, h) 00041 { 00042 00043 } // pcx::pcx() [constructor]
| claw::graphic::pcx::pcx | ( | const image & | that | ) |
Copy constructor.
| that | Image to copy from. |
Definition at line 50 of file pcx.cpp.
00051 : claw::graphic::image(that) 00052 { 00053 00054 } // pcx::pcx() [copy constructor]
| claw::graphic::pcx::pcx | ( | std::istream & | f | ) |
| void claw::graphic::pcx::save | ( | std::ostream & | os | ) | const |
1.5.5