[vtkusers] Zooming Image
ajay.arya at wipro.com
ajay.arya at wipro.com
Tue Sep 28 04:32:50 EDT 2004
Hi All,
Please let me know how to zoom the Image without using
vtkRenderWindowInteractor.
I tried one code this is not working .This is the code
in which i am reading a BMP image.
char* fname = "D:\\study1\\study.image1.bmp";
vtkBMPReader* reader=vtkBMPReader::New();
reader->SetFileName(fname);
vtkImageData *data=vtkImageData::New();
data = reader->GetOutput();
vtkImageActor *actor=vtkImageActor::New();
actor->SetInput(reader->GetOutput());
vtkCamera *cam=vtkCamera::New();
cam->Zoom(0.0);
vtkRenderer *renderer=vtkRenderer::New();
renderer->AddActor(actor);
renderer->SetBackground(0.1,0.2,0.4);
vtkRenderWindow *renwin=vtkRenderWindow::New();
renwin->AddRenderer(renderer);
renwin->SetSize(300,300);
and vtkImage Magnify also i tried like that
vtkImageMagnify *mag=vtkImageMagnify::New();
mag->SetMagnificationFactors(a);
Thanks in advance
Ajay.
Confidentiality Notice
The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or Mailadmin at wipro.com immediately
and destroy all copies of this message and any attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040928/7d7261d7/attachment.htm>
More information about the vtkusers
mailing list