[vtkusers] How to get the render window image when the window is too big?
winderzc at yahoo.com
Tue Jan 18 11:39:19 EST 2005
I am trying to save a rendered window as BMP image file. I use the following codes:
vtkRenderWindow *renWin = vtkRenderWindow::New();
vtkWindowToImageFilter *ImageFilter = vtkWindowToImageFilter::New();
vtkBMPWriter *bmpWriter = vtkBMPWriter::New();
And I need to set the image size (in pixel form), which could be done by setting window size, using the code, i.e.:
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.
Is there anybody know how to solve this BIG window problem?! Thanks in advance!!!
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers