[vtkusers] Saving JPEG

Peter Spring meancity at gmail.com
Sat Aug 5 09:40:44 EDT 2006


 a block of tcl code.

  vtkWindowToImageFilter w2i
  w2i SetInput renWin
  vtkJPEGWriter w
  w2i Modified
  w SetInput [w2i GetOutput]
  w SetFileName $name
  w Write

no mesa. it works fine even with vtk 4.2

On 8/4/06, Vivek Dwivedi <vivekd at mail630.gsfc.nasa.gov> wrote:
>
> I saw the code but I don't want to use MESA is there a way within VTK
> itself ?
>
> -Vivek
>
>
> On Aug 4, 2006, at 9:18 AM, N. Yang wrote:
>
> > In that case you might want off-screen rendering and you can refer to
> >
> > http://www.erdc.hpc.mil/documentation/Tips_Tricks/vtk
> >
> > ----- Original Message -----
> > From: Vivek Dwivedi <vivekd at mail630.gsfc.nasa.gov>
> > Date: Friday, August 4, 2006 2:48 pm
> > Subject: [vtkusers] Saving JPEG
> >
> >> Hi all:
> >>
> >> Quick question is it necessary to render out an image in a render
> >> window in order to save it as an image file or can we directly save
> >>
> >> the image without rendering it out?
> >>
> >>
> >> -Thanks
> >>
> >> -Vivek
> >>
> >>
> >> _______________________________________________
> >> This is the private VTK discussion list.
> >> Please keep messages on-topic. Check the FAQ at:
> >> http://www.vtk.org/Wiki/VTK_FAQFollow this link to
> >> subscribe/unsubscribe:http://www.vtk.org/mailman/listinfo/vtkusers
> >>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060805/a8da6dc2/attachment.htm>


More information about the vtkusers mailing list