[vtkusers] problem of writing a JPEG image
Zhan Zhang
ZhangZ at mail.nlm.nih.gov
Fri Sep 6 17:35:07 EDT 2002
Hi Andy,
Thank you for the reply. I do add the actor to the renderer. I tried
your way, but still got the same error message.
Zhan
>>> Andy Cedilnik <andy.cedilnik at kitware.com> 09/06/02 04:50PM >>>
Hello,
You do add some actors do you?
Try:
w2i Update
before the Write.
Andy
On Fri, 2002-09-06 at 16:37, Zhan Zhang wrote:
> 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"
More information about the vtkusers
mailing list