Hi,<br><br>How can I change the slice in vtkImageActor ?<br><br> I am trying
to use the image_actor.SetZSlice (10), but does not change the piece,
it seems that the manual says it is not on the slices that are in HD.<br><br><br>Regards,<br>Paulo Amorim<br><br><br><br><div class="gmail_quote">2008/11/11 David Gobbi <span dir="ltr">&lt;<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Paulo,<br>
<br>
It is impossible to zoom a 2D actor. &nbsp;Instead, you have to magnify the<br>
image before it goes to the vtkImageMapper. &nbsp;To zoom by an integer<br>
factor, you can use something like vtkImageMagnify to enlarge the<br>
image and then vtkImageClip to crop the image to the desired size.<br>
<br>
You might find it easier to use vtkImageActor, though, since<br>
vtkImageActor is a 3D actor and you can just zoom the camera.<br>
<br>
 &nbsp; &nbsp;David<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
On Tue, Nov 11, 2008 at 1:28 PM, Paulo Henrique Junqueira Amorim<br>
&lt;<a href="mailto:paulojamorim@gmail.com">paulojamorim@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; How do I zoom into a vtkActor2D with vtkImageMapper?<br>
&gt;<br>
&gt; The vtkCamera only works with 3D.<br>
&gt;<br>
&gt;<br>
&gt; Regards,<br>
&gt; Paulo Amorim<br>
</div></div>&gt; _______________________________________________<br>
&gt; This is the private VTK discussion list.<br>
&gt; Please keep messages on-topic. Check the FAQ at:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br>