summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2005-05-01 12:13:50 +0000
committerdeva <deva>2005-05-01 12:13:50 +0000
commit4248e1b3a9791983c33ca8ce65839d1c882dfeb0 (patch)
tree18fd592b66ed41d8a46d8bd70ba20d9c6a706c3c
parentd560c9cd0ed12def4c620187fcf3144ab18f76e0 (diff)
Removed bitmap readin.
-rw-r--r--src/mainwindow.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc
index 0e681e0..dc81ae2 100644
--- a/src/mainwindow.cc
+++ b/src/mainwindow.cc
@@ -27,6 +27,9 @@
*/
/*
* $Log$
+ * Revision 1.19 2005/05/01 12:13:50 deva
+ * Removed bitmap readin.
+ *
* Revision 1.18 2005/05/01 12:04:15 deva
* Using qbitmap for raw pixel readin.
*
@@ -337,13 +340,12 @@ void MainWindow::rec_clicked()
void MainWindow::shoot_clicked()
{
unsigned char pixels[720*576*3];
- QImage image;
camera->snapshot(pixels);
- QBitmap bitmap(720, 576, pixels);
- image = bitmap;
checkErrors();
+ QImage image(pixels, 720, 576, 32, 0, 720*576, QImage::LittleEndian);
+
image = image.smoothScale(img_history[0]->width(), img_history[0]->height());
QPixmap pixmap;