Definition at line 262 of file pcx.hpp.
Public Member Functions | |
| void | operator() (const std::vector< color_plane_type > &scanline, image &img, unsigned int y) const |
| Converts a scan line of a 3 planes true color pcx into 32 bpp pixels. | |
| void claw::graphic::pcx::reader::converter_true_color::operator() | ( | const std::vector< color_plane_type > & | scanline, | |
| image & | img, | |||
| unsigned int | y | |||
| ) | const |
Converts a scan line of a 3 planes true color pcx into 32 bpp pixels.
| scanline | the scan line to convert. | |
| img | The image in which we write the results. | |
| y | The line of img concerned by the pixels. |
Definition at line 153 of file pcx_reader.cpp.
References CLAW_PRECOND.
00155 { 00156 CLAW_PRECOND( scanline.size() == 3 ); 00157 00158 for ( unsigned int x=0; x!=img.width(); ++x ) 00159 { 00160 img[y][x].components.red = scanline[0][x]; 00161 img[y][x].components.green = scanline[1][x]; 00162 img[y][x].components.blue = scanline[2][x]; 00163 img[y][x].components.alpha = 00164 std::numeric_limits<pixel32::component_type>::max(); 00165 } 00166 } // pcx::reader::converter_true_color::operator()()
1.5.5