[vtkusers] help:How to zoom 2D Image?
Cao,Guogang
caoguogang at vip.sina.com
Wed Dec 15 02:58:32 EST 2004
how to zoom 2D Image?
Is vtkCamera for 3D rendering?
this my code:
//read the 16bits Data
vtkVolume16Reader *v16 = vtkVolume16Reader::New();
v16->SetDataDimensions (512,512);
v16->SetImageRange (1,1);
v16->SetDataByteOrderToLittleEndian();
v16->SetFilePrefix (chFilePre);
//create an imageView and render the image
vtkImageViewer *pview = vtkImageViewer::New();
pview->SetInput(v16->GetOutput());
pview->SetZSlice(1);
pview->SetSize(512,512);
pview->Render();
But how to Zoom it?
More information about the vtkusers
mailing list