Definition at line 239 of file bitmap.hpp.
Public Member Functions | |
void | operator() (scanline &dest, const char *src, const color_palette_type &palette) const |
Convert a 8bpp array to a pixel32 scanline. |
void claw::graphic::bitmap::reader::pixel8_to_pixel32::operator() | ( | scanline & | dest, | |
const char * | src, | |||
const color_palette_type & | palette | |||
) | const |
Convert a 8bpp array to a pixel32 scanline.
dest | (out) Filled scanline. | |
src | Pixel array to convert. | |
palette | Color palette. |
Definition at line 246 of file bitmap_reader.cpp.
00247 { 00248 assert(palette.size() == 256); 00249 00250 const unsigned char* s = reinterpret_cast<const unsigned char*>(src); 00251 00252 std::transform(s, s + dest.size(), dest.begin(), palette); 00253 } // bitmap::reader::pixel8_to_pixel32()