diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mainwindow.cc | 8 |
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; |