<DIV>Hi all,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I am trying to save a rendered window as BMP image file. I use the following codes:</DIV>
<DIV>&nbsp; vtkRenderWindow *renWin = vtkRenderWindow::New();</DIV>
<DIV>&nbsp; ...</DIV>
<DIV>&nbsp; ...&nbsp;</DIV>
<DIV>&nbsp; renWin-&gt;Render();</DIV>
<DIV>&nbsp; vtkWindowToImageFilter *ImageFilter&nbsp; = vtkWindowToImageFilter::New();<BR>&nbsp; ImageFilter-&gt;SetInput(renWin);</DIV>
<DIV>&nbsp; vtkBMPWriter *bmpWriter = vtkBMPWriter::New();</DIV>
<DIV>&nbsp; bmpWriter-&gt;SetFileName("a.bmp");</DIV>
<DIV>&nbsp; bmpWriter-&gt;SetInput(ImageFilter-&gt;GetOutput());<BR>&nbsp; bmpWriter-&gt;Write();</DIV>
<DIV>&nbsp;</DIV>
<DIV>And I need to set the image size (in pixel form), which could be done by setting window size, using the code, i.e.: </DIV>
<DIV>&nbsp; renWin-&gt;SetSize(width,height);</DIV>
<DIV>&nbsp;</DIV>
<DIV>If &nbsp;the width and height are&nbsp;smaller than the screen size, it works well.&nbsp;WHILE if NOT, the saved image size is&nbsp;truncated.such as, if I set width=996, height=1320, and my screen is too small to display the rendered window&nbsp;in one page. When I access the saved image, its size is 996*793; if I set width=498, height=660,&nbsp; the image size is 496*660.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Is there anybody know how to solve this&nbsp;BIG window problem?! Thanks in advance!!!</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards,</DIV>
<DIV>chong</DIV><p>
                <hr size=1>Do you Yahoo!?<br> 
<a href="http://us.rd.yahoo.com/mail_us/taglines/security/*http://promotions.yahoo.com/new_mail/static/protection.html">Yahoo! Mail</a> - You care about security. So do we.