[vtkusers] vtkCanvas to Java image
Biele
Biele at quantentunnel.de
Wed Jun 23 04:24:53 EDT 2004
> Have you looked at vtk*Writer under the IO/ directory? [...]
Thanks Tom, that's a possibility.
But I really would prefer to get a BufferedImage (or read the pixel data to
create one myself) and use the Java export methods for consistency reasons
with other program parts.
Is there a way?
> <026101c458a7$4e1554a0$0306a8c0 at bierle>"Biele" writes:
> >Hi,
> >
> >I have a 3D-graphic Java application using vtk. Now I want to export
> >images/movies to formats like .jpg, .avi etc.
> >The Java Media Framework (JMF) allows me to export like that but I need a
> >Java image like "java.awt.image.BufferedImage".
> >Does anybody know a way to get the picture from the vtkCanvas to a
> >BufferedImage?
> >If not, can I access the pixel data of the rendered image from my Java
> >application?
> >Or export a file (i.e. jpg) directly from vtk?
> >
> >Thanks for any ideas,
> >
> >Biele
More information about the vtkusers
mailing list