<DIV>Hi all,</DIV>
<DIV> </DIV>
<DIV>I am trying to save a rendered window as BMP image file. I use the following codes:</DIV>
<DIV> vtkRenderWindow *renWin = vtkRenderWindow::New();</DIV>
<DIV> ...</DIV>
<DIV> ... </DIV>
<DIV> renWin->Render();</DIV>
<DIV> vtkWindowToImageFilter *ImageFilter = vtkWindowToImageFilter::New();<BR> ImageFilter->SetInput(renWin);</DIV>
<DIV> vtkBMPWriter *bmpWriter = vtkBMPWriter::New();</DIV>
<DIV> bmpWriter->SetFileName("a.bmp");</DIV>
<DIV> bmpWriter->SetInput(ImageFilter->GetOutput());<BR> bmpWriter->Write();</DIV>
<DIV> </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> renWin->SetSize(width,height);</DIV>
<DIV> </DIV>
<DIV>If the width and height are smaller than the screen size, it works well. WHILE if NOT, the saved image size is truncated.such as, if I set width=996, height=1320, and my screen is too small to display the rendered window in one page. When I access the saved image, its size is 996*793; if I set width=498, height=660, the image size is 496*660.</DIV>
<DIV> </DIV>
<DIV>Is there anybody know how to solve this BIG window problem?! Thanks in advance!!!</DIV>
<DIV> </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.