From: tbaudier Date: Thu, 15 Sep 2016 09:54:09 +0000 (+0200) Subject: With Qt4, debug the screenshot X-Git-Tag: v1.4.0~4^2~2 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=db5baf73dbdcc76e29911a241e5e1cfdc430e3e0;p=clitk.git With Qt4, debug the screenshot --- 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();