dirty_debug

This commit is contained in:
Hiro Protagonist 2017-03-21 18:35:05 +13:00
parent 2674ad3dfd
commit 6b24598e74

View file

@ -138,7 +138,7 @@ void MainWindow::displayPreview(FlyCapture2::Image* last_capture) {
FlyCapture2::Image last_image;
FlyCapture2::Error e = last_capture->Convert(FlyCapture2::PIXEL_FORMAT_BGR, &last_image);
last_preview_image = QImage::fromData(QByteArray(last_image->GetData(), last_image.GetDataSize()), QImage::Format_BGR30);
last_preview_image = QImage::fromData(QByteArray(last_image.GetData(), last_image.GetDataSize()), QImage::Format_BGR30);
//last_preview_image.scaledToWidth(500);
ui->preview_widget->setFixedSize(last_preview_image.width(), last_preview_image.height());