summaryrefslogtreecommitdiff
path: root/src/GipfelWidget.H
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-09-14 14:01:33 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-09-14 14:01:33 +0200
commitceec61fe9614b7fb631781c3f9d21894e084077b (patch)
tree878103fdd22fb7fdf75c1e7629a5038ea60f354e /src/GipfelWidget.H
parentc4df5daaef948b4822ae6023c511e8da2e3d468c (diff)
implement biliear resampling
Diffstat (limited to 'src/GipfelWidget.H')
-rw-r--r--src/GipfelWidget.H9
1 files changed, 6 insertions, 3 deletions
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();
};