summaryrefslogtreecommitdiff
path: root/src/gipfel.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-08-02 18:00:23 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-08-02 18:00:23 +0200
commit732e18ac89479a9a789068b32145825bb0c98ba4 (patch)
tree3cfbe74dbf64150c6ba73d0db21dd03536aac67f /src/gipfel.cxx
parent52669d81a766eacc1b4e60d0cf477e35b598fcbe (diff)
implement PreviewOutputImage
Diffstat (limited to 'src/gipfel.cxx')
-rw-r--r--src/gipfel.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gipfel.cxx b/src/gipfel.cxx
index 5cd170a..5dd69a7 100644
--- a/src/gipfel.cxx
+++ b/src/gipfel.cxx
@@ -42,6 +42,7 @@
#include "Fl_Search_Chooser.H"
#include "GipfelWidget.H"
#include "JPEGOutputImage.H"
+#include "PreviewOutputImage.H"
#include "Stitch.H"
#include "choose_hill.H"
#include "../config.h"
@@ -448,18 +449,18 @@ static int stitch(int stitch_w, int stitch_h, int argc, char **argv) {
for (int i=0; i<argc; i++) {
st->load_image(argv[i]);
}
-#if 0
+
win = new Fl_Window(0,0, 1000, stitch_h);
scroll = new Fl_Scroll(0, 0, win->w(), win->h());
- PreviewOutputImage *img = new PreviewOutputImage();
+ PreviewOutputImage *img = new PreviewOutputImage(0, 0, stitch_w, stitch_h);
win->resizable(scroll);
win->show(0, argv);
- st->resample(img, 0.0, 7.0);
-#endif
- st->set_output((OutputImage*) new JPEGOutputImage("/tmp/bla.jpg", 90));
+ //st->set_output((OutputImage*) new JPEGOutputImage("/tmp/bla.jpg", 90));
+ st->set_output((OutputImage*) img);
st->resample(stitch_w, stitch_h, 0.0, 7.0);
+ img->redraw();
Fl::run();
return 0;