[vtkusers] problem of writing a JPEG image

Zhan Zhang ZhangZ at mail.nlm.nih.gov
Fri Sep 6 16:37:28 EDT 2002


Hi,

I met some problem while using the image writing function in VTK. I
write in TCL running on a Win 2000 platform. Could somebody point out a
solution for me?

My TCL script is:

vtkRenderer ren1
vtkRenderWindow renWin
    renWin AddRenderer ren1
ren1 Render

vtkWindowToImageFilter w2i
	w2i SetInput renWin
	
vtkJPEGWriter writer
	writer SetInput [w2i GetOutput]
	writer SetFileName "c:\\zhan\\test.jpg"
	writer Write

the error message is attached in this email as "error.gif"

Thank you for reading this email.

Regards,
Zhan 




-------------- next part --------------
A non-text attachment was scrubbed...
Name: error.gif
Type: image/gif
Size: 4452 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020906/e81a42fe/attachment.gif>


More information about the vtkusers mailing list