Commit 1ee2b968 authored by Kurt Sansom's avatar Kurt Sansom

accounting for legacy behavior in

parent 4e41d63e
......@@ -144,7 +144,11 @@ int main(int argc, char * argv[])
vtkSmartPointer<vtkWindowToImageFilter> windowToImageFilter =
vtkSmartPointer<vtkWindowToImageFilter>::New();
windowToImageFilter->SetInput(renderWindow);
#if (VTK_MAJOR_VERSION <= 8 && VTK_MINOR_VERSION <= 1) //deprecated as of vtk 8.1
windowToImageFilter->SetMagnification(4);
#else
windowToImageFilter->SetScale(4, 4);
#endif
windowToImageFilter->Update();
// Write image to PNG
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment