[vtkusers] image display
sdfgr lldfoe
getfuture at yahoo.com
Wed Apr 28 10:48:09 EDT 2004
Hi, all
I have a question about how to display image in full
window. Below is my c++ code
1 bmpReader = vtkBMPReader::New();
2 bmpReader->SetFileName("c:\\temp\\a.bmp");
//pixels: 400 X 200
3 viewer = vtkImageViewer::New();
4 viewer->SetInput(bmpReader->GetOutput());
5 viewer->SetSize(600,300);
6 viewer->Render();
The image size is 400x200, the window size is set to
600x300.
Using the above codes, the image was only displayed in
a 400x200 region. I want the image occupy the whole
window, how should I do?
thanks in advance
john
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover
More information about the vtkusers
mailing list