<div>Thx all of U.I am so thx.today i don't just learned how to do something and learned how to learn something.lol greets!</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 4/20/06, <b class="gmail_sendername">stoptv</b> &lt;<a href="mailto:stoptv@gmail.com">stoptv@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div style="DIRECTION: ltr"><br><br>
<div></div>
<div style="DIRECTION: ltr"><span class="q"><span class="gmail_quote">On 4/20/06, <b class="gmail_sendername">ccyx chen</b> &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:ccyxcn@gmail.com" target="_blank">
ccyxcn@gmail.com</a>&gt; wrote:</span></span></div>
<div style="DIRECTION: ltr">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div style="DIRECTION: ltr"></div>
<div style="DIRECTION: ltr"><span class="q">
<div>I'm new one to use VTK.</div>
<div>I want to save RenderWindow as a picture file(like .jpg .bmp...).What can i do?</div></span></div>
<div style="DIRECTION: ltr"></div></blockquote></div><br>hope this snippet of python from the examples section helps:<br><br># Capture the display and place in a tiff<br>def CaptureImage():<br>&nbsp;&nbsp;&nbsp; w2i = vtk.vtkWindowToImageFilter
()<br>&nbsp;&nbsp;&nbsp; writer = vtk.vtkTIFFWriter()<br>&nbsp;&nbsp;&nbsp; w2i.SetInput(renWin)<br>&nbsp;&nbsp;&nbsp; w2i.Update()<br>&nbsp;&nbsp;&nbsp; writer.SetInputConnection(w2i.GetOutputPort())<br>&nbsp;&nbsp;&nbsp; writer.SetFileName(&quot;image.tif&quot;)<br>&nbsp;&nbsp;&nbsp; renWin.Render()<br>&nbsp;&nbsp;&nbsp; writer.Write
()<br><br>cheers!!<br clear="all"></div>
<div style="DIRECTION: ltr"><span class="sg"><br>-- <br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:stoptv@gmail.com" target="_blank">stoptv@gmail.com</a> </span></div><br>_______________________________________________
<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ
</a><br>Follow this link to subscribe/unsubscribe:<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers
</a><br><br><br></blockquote></div><br>