From faf5dff31fcbafb5cfa8575b85ffaf2408ff5d39 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Mon, 18 Dec 2006 18:26:41 +0100 Subject: make bilinear resampling optional --- src/GipfelWidget.H | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/GipfelWidget.H') diff --git a/src/GipfelWidget.H b/src/GipfelWidget.H index b6bb901..2210e07 100644 --- a/src/GipfelWidget.H +++ b/src/GipfelWidget.H @@ -46,6 +46,11 @@ class GipfelWidget : public Fl_Widget { uchar *r, uchar *g, uchar *b); public: + typedef enum { + NEAREST = 0, + BILINEAR = 1 + } sample_mode_t; + GipfelWidget(int X,int Y,int W, int H); void center(); @@ -114,8 +119,8 @@ class GipfelWidget : public Fl_Widget { int comp_params(); - int get_pixel(double a_alph, double a_nick, - uchar *r, uchar *g, uchar *b); + int get_pixel(GipfelWidget::sample_mode_t, + double a_alph, double a_nick, uchar *r, uchar *g, uchar *b); void draw(); }; -- cgit v1.2.3