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