Do you mean you want to save a screenshot?<br><br><div class="gmail_quote">2011/10/26 steelblue <span dir="ltr"><<a href="mailto:812075761@qq.com">812075761@qq.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
hi everyone:<br>
<br>
i have problem about save vtkRenderWindow as JPEG file,<br>
this is my code:<br>
<br>
vtkRenderWindow<br>
renWin=vtkpanel.getRenderWindow();//vtkpanel is a vtkPanel<br>
vtkWindowToImageFilter w2i =new vtkWindowToImageFilter();<br>
w2i.SetInput(renWin);<br>
w2i.Modified();<br>
vtkJPEGWriter writer =new vtkJPEGWriter();<br>
writer.SetInput(w2i.GetOutput());<br>
writer.SetFileName("f://vtk.jpg");<br>
writer.Write();<br>
<br>
but the result only a JPEG file that is black,total black ,,..<br>
<br>
the problem bothered me so much,,who can give me a solution......<br>
thanks so so much!!<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/a-question-about-save-vtkRenderWindow-as-JPEG-file-tp4940006p4940006.html" target="_blank">http://vtk.1045678.n5.nabble.com/a-question-about-save-vtkRenderWindow-as-JPEG-file-tp4940006p4940006.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</font></blockquote></div><br>