|
CLAW Library (a C++ Library Absolutely Wonderful) 1.5.5
|
A class for pcx pictures. More...
#include <pcx.hpp>
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... | |
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 < rgba_pixel_8 > | 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. | |
typedef color_palette<rgba_pixel_8> claw::graphic::pcx::color_palette32 [private] |
typedef std::vector<u_int_8> claw::graphic::pcx::color_plane_type [private] |
typedef integer_of_size<16>::type claw::graphic::pcx::int_16 [private] |
typedef integer_of_size<8>::type claw::graphic::pcx::int_8 [private] |
typedef unsigned_integer_of_size<16>::type claw::graphic::pcx::u_int_16 [private] |
typedef unsigned_integer_of_size<8>::type claw::graphic::pcx::u_int_8 [private] |
enum claw::graphic::pcx::format_version [private] |
Definition at line 59 of file pcx.hpp.
{
v_2_5 = 0,
v_2_8_with_palette = 2,
v_2_8_without_palette = 3,
v_win = 4,
v_3_0 = 5
}; // 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.
: claw::graphic::image(w, h) { } // 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.
: claw::graphic::image(that) { } // pcx::pcx() [copy constructor]
| claw::graphic::pcx::pcx | ( | std::istream & | f | ) |
| void claw::graphic::pcx::save | ( | std::ostream & | os | ) | const |
1.7.3