imgsynth2/cpixelformat_indexed8.h

00001 
00008 #ifndef CPixelFormat_Indexed8_H
00009 #define CPixelFormat_Indexed8_H
00010 
00011 #include <fstream>
00012 #include "cpixelformat.h"
00013 
00020 class CPixelFormat_Indexed8 : public CPixelFormat
00021 {
00022   public:
00032     CPixelFormat_Indexed8(CBitmap *bitmap)
00033       : CPixelFormat(bitmap)
00034     {}
00035 
00045     ~CPixelFormat_Indexed8()
00046     {}
00047 
00059     void getPixel(RGBPIXEL& pixel, uint32_t x, uint32_t y);
00060 
00072     void setPixel(const RGBPIXEL& pixel, uint32_t x, uint32_t y);
00073 
00083     uint32_t getBitCount()
00084     {
00085       return 24;
00086     }
00087 
00097     void getMaxColor(RGBPIXEL& pixel)
00098     {
00099       /* value = 2^8 - 1 */
00100       pixel.red = pixel.green = pixel.blue = 255;
00101     }
00102 };
00103 
00104 #endif
00105 
00106 /* vim: set et sw=2 ts=2: */

Generated on Sun May 3 19:16:26 2009 for imgsynth2 by  doxygen 1.5.3