[vtkusers] vtkWindowToImageFilter

Burlen burlen at apollo.sr.unh.edu
Fri Feb 18 11:58:32 EST 2005


Hi,
when using the window to image filter, with python and tk, if the screen saver comes on during the lengthy processing of a series of visualizations all I end up with are a bunch of shots of the screen saver.

also it seems to capture some of the task bar on some platforms.

any way to fix this?? (besides turing the screen saver off?)




self.PlotWindow.lift()      # make certain that no other windows get grabbed

renwin = self.RenderWidget.GetRenderWindow()
            
renwin.Modified()
renwin.Render()

w2i = vtk.vtkWindowToImageFilter()
w2i.SetInput(renwin)

psw = vtk.vtkPostScriptWriter()
psw.SetInput(w2i.GetOutput())
psw.SetFileName(sfn)
psw.Write()
 



More information about the vtkusers mailing list