00001 #ifndef _SLICERIMAGE_H_ 00002 #define _SLICERIMAGE_H_ 00003 00004 #include "vuSimpleTypes.h" 00005 #include "vuColourRGBa.h" 00006 00007 namespace ns_vu1112116 { 00008 00016 class Image 00017 { 00018 public: 00020 Image(); 00022 virtual ~Image(); 00024 bool init(int sizx, int sizy); 00026 void get_extents(int & sizx, int & sizy); 00028 bool set_xy(int x, int y, const vuColourRGBa& col); 00031 bool get_xy(int x, int y, vuColourRGBa & col); 00033 const byte* get_rgb() const; 00034 private: 00036 byte *spix; 00038 int maxx,maxy; 00039 }; 00040 00041 }; 00042 00043 #endif