[vtkusers] Zoom Question
david.gobbi at gmail.com
Tue Nov 11 17:29:52 EST 2008
It is impossible to zoom a 2D actor. Instead, you have to magnify the
image before it goes to the vtkImageMapper. To zoom by an integer
factor, you can use something like vtkImageMagnify to enlarge the
image and then vtkImageClip to crop the image to the desired size.
You might find it easier to use vtkImageActor, though, since
vtkImageActor is a 3D actor and you can just zoom the camera.
On Tue, Nov 11, 2008 at 1:28 PM, Paulo Henrique Junqueira Amorim
<paulojamorim at gmail.com> wrote:
> How do I zoom into a vtkActor2D with vtkImageMapper?
> The vtkCamera only works with 3D.
> Paulo Amorim
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> Follow this link to subscribe/unsubscribe:
More information about the vtkusers