[vtkusers] saving vtk render as jpg file?

Jean M. Favre jfavre at cscs.ch
Fri Mar 28 11:54:07 EST 2003


Sebastian Geiger wrote:

I use the following proc:


 proc CaptureImage { filename } {
   vtkWindowToImageFilter w2i
   vtkTIFFWriter writer

   w2i SetInput renWin
   w2i Update
   writer SetInput [w2i GetOutput]
   writer SetFileName $filename
   renWin Render
   writer Write

   writer Delete
   w2i Delete
}


-- 
Dr. Jean M. Favre,                            email:favre at cscs.ch
http://www.cscs.ch/people/Favre.html
CSCS, Swiss Center for Scientific Computing | Tel:  +41 (91) 610.82.40
Via Cantonale, 6928 Manno, Switzerland      | Fax:  +41 (91) 610.82.82



More information about the vtkusers mailing list