[vtkusers] saving vtk render as jpg file?

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Fri Mar 28 13:04:46 EST 2003


>>>>> "JSL" == Jeremy S Lefebvre <jslefeb at sandia.gov> writes:

    JSL>     I am using Vtk with Python and I have been wanting to
    JSL> save what I am rendering to a jpg or tiff file. I have been
    JSL> rendering it to a VRML file then using that to get a jpg or
    JSL> tiff file.  Is there a faster way of doing it?

Use vtkWindowToImageFilter along with vtkJPEGWriter.
Examples/GUI/Python/ImagePlaneWidget.py provides an example with the
TIFF writer instead.

cheers,
prabhu




More information about the vtkusers mailing list