From db5baf73dbdcc76e29911a241e5e1cfdc430e3e0 Mon Sep 17 00:00:00 2001 From: tbaudier Date: Thu, 15 Sep 2016 11:54:09 +0200 Subject: [PATCH] With Qt4, debug the screenshot --- vv/vvMainWindow.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vv/vvMainWindow.cxx b/vv/vvMainWindow.cxx index 1bc0759..79b2805 100644 --- a/vv/vvMainWindow.cxx +++ b/vv/vvMainWindow.cxx @@ -3323,6 +3323,8 @@ void vvMainWindow::SaveScreenshot(QVTKWidget *widget) if (!fileName.isEmpty()) { vtkSmartPointer w2i = vtkSmartPointer::New(); w2i->SetInput(widget->GetRenderWindow()); + w2i->SetMagnification(1); + w2i->SetInputBufferTypeToRGBA(); //also record the alpha (transparency) channel w2i->Update(); vtkImageData *image = w2i->GetOutput(); -- 2.47.1