Skip to content
Snippets Groups Projects
Commit e79dc462 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[App/DE] Use SetScale instead of deprecated method

parent 5babc858
No related branches found
No related tags found
No related merge requests found
......@@ -193,7 +193,7 @@ void VisualizationWidget::screenshot(QString filename, int magnification)
windowToImageFilter->SetInput(vtkWidget->GetRenderWindow());
// Set the resolution of the output image
// magnification times the current resolution of vtk render window
windowToImageFilter->SetMagnification(magnification);
windowToImageFilter->SetScale(magnification);
// Also record the alpha (transparency) channel
windowToImageFilter->SetInputBufferTypeToRGBA();
windowToImageFilter->Update();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment