00001 00007 #ifndef IMAGE_H 00008 #define IMAGE_H 00009 00010 #include <vector> 00011 00015 class Image 00016 { 00017 public: 00020 Image(); 00021 00025 ~Image(); 00026 00027 protected: 00028 00030 std::vector < std::vector < int > > m_data; 00031 00033 int m_nX; 00034 00036 int m_nY; 00037 00039 int m_min; 00040 00042 int m_max; 00043 00044 protected: 00045 00048 void ResetMem(); 00049 00050 public: 00051 00055 bool IsPointInside(unsigned int x,unsigned int y) const; 00056 00059 unsigned int GetSizeX() const ; 00060 00063 unsigned int GetSizeY() const ; 00064 00070 int GetData(int x, int y) const; 00071 00096 bool ReadFile(const std::string& filename); 00097 00099 int GetMin() const; 00100 00102 int GetMax() const; 00103 00105 void AdjustPaletteColors(); 00106 00107 }; 00108 00109 #endif // IMAGE_H