From: Thomas BAUDIER Date: Tue, 22 Oct 2019 07:29:09 +0000 (+0200) Subject: Remove transparency for screenshot X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=clitk.git;a=commitdiff_plain;h=d786b4f836c0f12ba4a6dd06803cbe771ac371e3 Remove transparency for screenshot For some computers, it leads to empty images --- diff --git a/vv/vvMainWindow.cxx b/vv/vvMainWindow.cxx index 8107d7f..8d2690f 100644 --- a/vv/vvMainWindow.cxx +++ b/vv/vvMainWindow.cxx @@ -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();