[vtkusers] Writing Pictures

Christian Pfaffel flash at itp.tu-graz.ac.at
Tue Jan 2 12:00:55 EST 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

when I try to write pictures and a window/taskbar is on top of the
renderwindow I get the window/taskbar on the picture as well. I use
code like this (iren is a RenderWindowInteractor, renWin a Render Window
and ren the Renderer):

[snip]
iren.Initialize()
iren.Start()
renWin.SetSize(1000,1000)
renWin.Render()
iren.Start()
windowToimage = vtkWindowToImageFilter()
windowToimage.SetInput(ren.GetVTKWindow())
pnmWriter = vtkPNMWriter()
pnmWriter.SetInput(windowToimage.GetOutput())
pnmWriter.SetFileName("/tmp/plot.png")
pnmWriter.Write()
[snip]

Areas of windows that are out of bounds of the physical screen are black.
I am using version 3.1 release 714N on a redhat 6.2 (XFree86-3.3.6-20).

Thanks in advance for your help,

Christian

- -- 
PGP-Key: http://fubphpc.tu-graz.ac.at/~flash/pubkey.gpg

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Weitere Infos: siehe http://www.gnupg.org

iD8DBQE6UglXzNp7/ndBhMQRArDqAJ96zE9jIEiD9GdC2XSFNMfYZXBa6ACfRbnc
wJUvCUepvpDLBPkcMvzJITA=
=0Z/K
-----END PGP SIGNATURE-----





More information about the vtkusers mailing list