summaryrefslogtreecommitdiff
path: root/src/mainwindow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cc')
-rw-r--r--src/mainwindow.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc
index fccee98..0e681e0 100644
--- a/src/mainwindow.cc
+++ b/src/mainwindow.cc
@@ -27,6 +27,9 @@
*/
/*
* $Log$
+ * Revision 1.18 2005/05/01 12:04:15 deva
+ * Using qbitmap for raw pixel readin.
+ *
* Revision 1.17 2005/05/01 11:25:56 deva
* Added code to read screenshot from frame queue, decode it to rgb and put it into a qimage.
*
@@ -44,6 +47,7 @@
#include <qpushbutton.h>
#include <qfont.h>
#include <qpixmap.h>
+#include <qbitmap.h>
#include <qimage.h>
#include <qlayout.h>
#include <qstatusbar.h>
@@ -336,10 +340,10 @@ void MainWindow::shoot_clicked()
QImage image;
camera->snapshot(pixels);
- image.loadFromData(pixels, sizeof(pixels));
+ QBitmap bitmap(720, 576, pixels);
+ image = bitmap;
checkErrors();
- image = img_live->getScreenshot();
image = image.smoothScale(img_history[0]->width(), img_history[0]->height());
QPixmap pixmap;