From 90712e97bdc219492235f3ae04f3e707ae10e161 Mon Sep 17 00:00:00 2001 From: deva Date: Sun, 1 May 2005 11:25:56 +0000 Subject: Added code to read screenshot from frame queue, decode it to rgb and put it into a qimage. --- src/mainwindow.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/mainwindow.cc') diff --git a/src/mainwindow.cc b/src/mainwindow.cc index 0346ed3..fccee98 100644 --- a/src/mainwindow.cc +++ b/src/mainwindow.cc @@ -27,9 +27,11 @@ */ /* * $Log$ + * Revision 1.17 2005/05/01 11:25:56 deva + * Added code to read screenshot from frame queue, decode it to rgb and put it into a qimage. + * * Revision 1.16 2005/05/01 09:56:26 deva * Added Id and Log tags to all files - * */ #include #ifdef USE_GUI @@ -330,9 +332,11 @@ void MainWindow::rec_clicked() void MainWindow::shoot_clicked() { + unsigned char pixels[720*576*3]; QImage image; - camera->snapshot(); + camera->snapshot(pixels); + image.loadFromData(pixels, sizeof(pixels)); checkErrors(); image = img_live->getScreenshot(); -- cgit v1.2.3