From ceec61fe9614b7fb631781c3f9d21894e084077b Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Thu, 14 Sep 2006 14:01:33 +0200 Subject: implement biliear resampling --- src/GipfelWidget.H | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/GipfelWidget.H') diff --git a/src/GipfelWidget.H b/src/GipfelWidget.H index 7bcd3c0..054e9ef 100644 --- a/src/GipfelWidget.H +++ b/src/GipfelWidget.H @@ -48,10 +48,13 @@ class GipfelWidget : public Fl_Widget { int get_rel_track_width(Hill *m); static int get_pixel_nearest(Fl_Image *img, double x, double y, - char *r, char *g, char *b); + uchar *r, uchar *g, uchar *b); + + static int get_pixel_bilinear(Fl_Image *img, double x, double y, + uchar *r, uchar *g, uchar *b); static int get_pixel(Fl_Image *img, int x, int y, - char *r, char *g, char *b); + uchar *r, uchar *g, uchar *b); public: GipfelWidget(int X,int Y,int W, int H); @@ -125,7 +128,7 @@ class GipfelWidget : public Fl_Widget { int update(); int get_pixel(double a_view, double a_nick, - char *r, char *g, char *b); + uchar *r, uchar *g, uchar *b); void draw(); }; -- cgit v1.2.3