[vtkusers] save image from render window problem

victor sv victorsv at gmail.com
Fri Jun 28 05:42:02 EDT 2013


Hi all,

I'm trying to migrate this code to VTK-6.0.0:

    w2i = vtk.vtkWindowToImageFilter()
    w2i.SetInput(renderwindow)
    w2i.Modified()
    image = vtk.vtkPNGWriter()
    image.SetInputData(w2i.GetOutput())
    image.SetFileName(file)
    image.Write()

I'dont get any error, but the image is not writed.

anyone knows why?

Thanks,
Víctor.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130628/3dcdc49d/attachment.htm>


More information about the vtkusers mailing list