From 7d900b4ede22215413e4a0ddd1675c650ba3225f Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sun, 25 Jun 2006 11:49:32 +0200 Subject: implement various helper methods --- src/DataImage.H | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/DataImage.H') diff --git a/src/DataImage.H b/src/DataImage.H index 99910e5..fe6200d 100644 --- a/src/DataImage.H +++ b/src/DataImage.H @@ -20,20 +20,25 @@ #ifndef DATAIMAGE_H #define DATAIMAGE_H +#include +#include - -class DataImage : Fl_Widget { +class DataImage : public Fl_Widget { private: + int d; + uchar *data; public: - DataImage(int w, int h); + DataImage(int X, int Y, int W, int H); ~DataImage(); - int set_pixel(nt x, int y, char r, char g, char b); + int set_pixel(int x, int y, char r, char g, char b); + + void draw(); - static int get_pixel(Fl_RGB_Image *img, int x, int y, + static int get_pixel(Fl_Image *img, int x, int y, char *r, char *g, char *b); }; -- cgit v1.2.3