From 2c8088f2b146c0665d730006a91addb117092391 Mon Sep 17 00:00:00 2001 From: deva Date: Sun, 1 May 2005 12:17:41 +0000 Subject: *** empty log message *** --- src/mainwindow.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/mainwindow.cc b/src/mainwindow.cc index dc81ae2..1fd7b4a 100644 --- a/src/mainwindow.cc +++ b/src/mainwindow.cc @@ -27,6 +27,9 @@ */ /* * $Log$ + * Revision 1.20 2005/05/01 12:17:41 deva + * *** empty log message *** + * * Revision 1.19 2005/05/01 12:13:50 deva * Removed bitmap readin. * @@ -339,12 +342,12 @@ void MainWindow::rec_clicked() void MainWindow::shoot_clicked() { - unsigned char pixels[720*576*3]; + // unsigned char pixels[720*576*3]; - camera->snapshot(pixels); - checkErrors(); + QImage image(720, 576, 32); - QImage image(pixels, 720, 576, 32, 0, 720*576, QImage::LittleEndian); + camera->snapshot(image.bits()); + checkErrors(); image = image.smoothScale(img_history[0]->width(), img_history[0]->height()); -- cgit v1.2.3