From 4248e1b3a9791983c33ca8ce65839d1c882dfeb0 Mon Sep 17 00:00:00 2001 From: deva Date: Sun, 1 May 2005 12:13:50 +0000 Subject: Removed bitmap readin. --- src/mainwindow.cc | 8 +++++--- 1 file 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; -- cgit v1.2.3