diff -r 2a853d284a6a -r 64638385798a include/pixmap.h --- a/include/pixmap.h Thu May 15 19:15:57 2008 +0200 +++ b/include/pixmap.h Mon May 19 22:59:04 2008 +0200 @@ -67,11 +67,19 @@ void setData(Float *afdata, int aw, int ah) { fdata = afdata; w = aw; h = ah; }; + + /** get colour of pixel x,y */ const Colour &get(int x, int y) const { return data[y*w + x]; }; const int &getWidth() const { return w; }; const int &getHeight() const { return h; }; + + /** get pixmap data as array of floats */ Float*& getFloatData() { return fdata; }; + + /** get pixmap data as array of chars */ unsigned char *getCharData() const; + + /** write pixmap data to PNG file */ int writePNG(const char *fname) const; };