]> Creatis software - clitk.git/commitdiff
Remove transparency for screenshot
authorThomas BAUDIER <thomas.baudier@creatis.insa-lyon.fr>
Tue, 22 Oct 2019 07:29:09 +0000 (09:29 +0200)
committerThomas BAUDIER <thomas.baudier@creatis.insa-lyon.fr>
Tue, 22 Oct 2019 07:29:09 +0000 (09:29 +0200)
For some computers, it leads to empty images

vv/vvMainWindow.cxx

index 8107d7f5757d9db6f95df18f7df1cbd9c5b1c001..8d2690fe245bcf1c996af8743f3dc704d2227f54 100644 (file)
@@ -3426,7 +3426,7 @@ void vvMainWindow::SaveScreenshot(QVTKWidget *widget)
 #else
     w2i->SetMagnification(1);
 #endif
-    w2i->SetInputBufferTypeToRGBA(); //also record the alpha (transparency) channel
+    //w2i->SetInputBufferTypeToRGBA(); //also record the alpha (transparency) channel
     w2i->Update();
     vtkImageData *image = w2i->GetOutput();