[vtkusers] vtkWindowToImageFilter SetMagnification affect the RenderWindow

David Doria daviddoria at gmail.com
Tue Nov 13 10:17:36 EST 2012


On Tue, Nov 13, 2012 at 10:10 AM, Alessandro <notinmyhead at gmail.com> wrote:
> Hello,
>
> I tried to implement a screenshot functionality using the example at http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/Screenshot.
>
> My only issue is that the render window is affected by the setmagnification method of the vtkWindowToImageFilter, so it "zoom" after the invocation of update method. Why? Is there a way to avoid that behavior?
>
> Thanks,
> Ale

The SetMagnification in the example is just to show that even if your
render window is small on your screen, you can output a high
resolution screenshot. You can just comment this line to write out
exactly the pixels you see on the screen. Can you show us a real
screenshot (by pressing "PrnScn" or similar) and the output of this
example that you are not satisfied with?

David



More information about the vtkusers mailing list