<div>I had this problem too, vtkImageViewer2 is just a wrapper around a few classes that put it all together, the one you need to alter is the underlying image actor object. So get it, call SetDisplayExtent() with the new image dimensions on the image actor, and reset your camera. This worked for me. Goodluck,
</div>
<div>&nbsp;</div>
<div>Mark<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 9/9/05, <b class="gmail_sendername">David Borland</b> &lt;<a href="mailto:borland@cs.unc.edu">borland@cs.unc.edu</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I'm using ImageViewer2 to view some images.&nbsp;&nbsp;For right now, I have a<br>very simple pipeline:<br><br>vtkImageReader-&gt;vtkImageViewer2
<br><br>It works fine when initially loading an image.&nbsp;&nbsp;However, when reading a<br>new image, it does not work correctly.&nbsp;&nbsp;If the new image is larger than<br>the old image, the image does not look correct, and when it is smaller
<br>than the old image, the image is again incorrect, and there is an<br>'Update extent does not lie within whole extent' error.<br><br>It appears that the new whole extent is being correctly propagated<br>through the pipeline, but the update extent is not.&nbsp;&nbsp;I've noticed
<br>similar problems on the mailing list, but have not been able to find a<br>solution.&nbsp;&nbsp;Can anyone help me out?&nbsp;&nbsp;Thanks,<br><br>David<br>_______________________________________________<br>This is the private VTK discussion list.
<br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">
http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br>