[vtkusers] JPG/GIF output ?

Will Schroeder will.schroeder at kitware.com
Thu Sep 7 20:30:50 EDT 2000


Here's what I do:

vtkRendererSource rs
   rs SetInput ren1
vtkTIFFWriter w
   w SetInput [rs GetOuput]
   w SetFileName "image.tif"
   w Write

and then use a separate program to convert to other formats like jpg.

The reason that some of these formats aren't in vtk is because of the
build dependencies that they introduce.

Will

At 03:34 PM 9/7/2000 -0500, Jianhua Ma wrote:
>Hello All,
>
>     I'd like to use vtkRenderWindow in a program written.
>Anyone know whether possible to save/output images as *.JPG
>GIF format file except PPM format(vtkRenderWindow::SaveImageAsPPM)
>in VTK ?   Thanks in advance,
>
>--Jianhua





More information about the vtkusers mailing list