[vtkusers] vtkWindowToImageFilter --> black image
Karin Faulhaber
faulhabe at ipf.uni-karlsruhe.de
Tue Nov 28 13:13:38 EST 2000
Hi,
I'm trying to print the contents of a vtkPanel to a file:
...
vtkRenderWindow renWin1 = renPanel1.getRenderWindow();
vtkWindowToImageFilter wtoif = new vtkWindowToImageFilter();
wtoif.SetInput(renWin1);
vtkPostScriptWriter psWriter = new vtkPostScriptWriter();
psWriter.SetInput(wtoif.GetOutput());
psWriter.SetFileName("earth.ps");
psWriter.Write();
...
But no matter if I use ps or tiff, the image is black (I did try
changing the colors of Actor and background). Does someone have any idea
about that?
Thanks for your help!
Karin
More information about the vtkusers
mailing list