aboutsummaryrefslogtreecommitdiff
path: root/src/render.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-02-17 11:53:00 -0800
committerThomas White <taw@physics.org>2012-02-22 15:27:15 +0100
commit6ffd78ac10f229608bbdf920799bb3aa8f4fdd2d (patch)
tree9ca3b44c7f63c3f287a4f0a9b1dda81679203c59 /src/render.h
parent50523729d22be834315ff9084f73a36a235400ab (diff)
Decouple renderer from 'hdfsee'
Diffstat (limited to 'src/render.h')
-rw-r--r--src/render.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/render.h b/src/render.h
index ae9fb637..a193ae4a 100644
--- a/src/render.h
+++ b/src/render.h
@@ -20,7 +20,6 @@
#include <stddef.h>
-
#include "image.h"
enum {
@@ -29,6 +28,7 @@ enum {
SCALE_INVMONO
};
+/* Colour scale lookup */
extern void render_scale(float val, float max, int scale,
float *rp, float *gp, float *bp);
@@ -36,14 +36,15 @@ extern void render_scale(float val, float max, int scale,
#ifdef HAVE_GTK
#include <gdk-pixbuf/gdk-pixbuf.h>
-#include "displaywindow.h"
-extern GdkPixbuf *render_get_image(DisplayWindow *dw);
+extern GdkPixbuf *render_get_image(struct image *image,
+ int binning, int scale, double boost);
extern GdkPixbuf *render_get_colour_scale(size_t w, size_t h, int scale);
-extern int render_png(DisplayWindow *dw, const char *filename);
-extern int render_tiff_fp(DisplayWindow *dw, const char *filename);
-extern int render_tiff_int16(DisplayWindow *dw, const char *filename);
+extern int render_png(GdkPixbuf *pixbuf, const char *filename);
+extern int render_tiff_fp(struct image *image, const char *filename);
+extern int render_tiff_int16(struct image *image, const char *filename,
+ double boost);
#endif /* HAVE_GTK */