[vtkusers] saving the window to a file
David Doria
daviddoria at gmail.com
Tue Oct 12 07:38:51 EDT 2010
On Tue, Oct 12, 2010 at 6:00 AM, Bill Chivas <billno123 at hotmail.com> wrote:
> Hello,
>
> i want to save the window to a file (e.g. tiff format). I know there is the
> vtkTIFFWriter but i wanted also to have an option for the resolution of the
> saved image.
> Any ideas?
>
> Thanks
I believe you're looking for vtkWindowToImageFilter.
There is an example here:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/Screenshot
Note this line:
windowToImageFilter->SetMagnification(3); //set the resolution of
the output image
David
More information about the vtkusers
mailing list