<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hey Huseyin,<div><br></div><div>If calling renderer->ResetCamera(imageActor->GetBounds()) doesn't get you close enough, you can also look at the example on the Wiki where an image is used as the background for a window:</div><div><br></div><div><a href="http://www.cmake.org/Wiki/VTK/Examples/Images/BackgroundImage">http://www.cmake.org/Wiki/VTK/Examples/Images/BackgroundImage</a></div><div><br></div><div>I think this example came out of this mailing list thread:</div><div><br></div><div><a href="http://markmail.org/message/taknydvbtdhv6bsx">http://markmail.org/message/taknydvbtdhv6bsx</a></div><div><br></div><div>I seem to recall anther recent thread talking about an image filling a window, but I can't find it right now.</div><div><br></div><div>Good luck,</div><div>-Eric</div><div><br></div><div><div>
<div style="font-size: 12px; ">------------------------------------------------------</div><div style="font-size: 12px; ">Eric E Monson</div><div style="font-size: 12px; ">Duke Visualization Technology Group</div><div style="font-size: 12px; "><br class="webkit-block-placeholder"></div></div><br><div><div>On Jul 8, 2010, at 3:22 AM, Hüseyin Savaş wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<div style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px" id="MailContainerBody" leftmargin="0" topmargin="0" canvastabstop="true" name="Compose message area">
<div><font size="2" face="Arial">
<div><font size="2" face="Arial">Actually that looks irrelevant.</font></div>
<div><font size="2" face="Arial">Let me describe my need again: I want my image
(probably imageActor) to fill the whole screen.</font></div>
<div><font size="2" face="Arial">As far as I got, I can set the scale of my
imageactor with some necessary calculations and then mandatorily set the
position of imageactor for aligning the image to center.</font></div>
<div><font size="2" face="Arial">But again as I said, this isn't native at all.
There should definitely be a more proper way.</font></div>
<div style="FONT: 10pt Tahoma">
<div><font face="Arial">Thanks in advance.</font></div>
<div><font face="Arial">Huseyin.</font></div>
<div><font face="Arial"></font><br> </div>
<div style="BACKGROUND: #f5f5f5">
<div style="font-color: black"><b>From:</b> <a title="mailto:jothybasu@gmail.com
CTRL + Click to follow link" href="mailto:jothybasu@gmail.com">Jothy</a> </div>
<div><b>Sent:</b> Wednesday, July 07, 2010 6:09 PM</div>
<div><b>To:</b> <a title="mailto:metlord@hotmail.com
CTRL + Click to follow link" href="mailto:metlord@hotmail.com">Hüseyin Savaş</a> </div>
<div><b>Cc:</b> <a title="mailto:vtkusers@vtk.org
CTRL + Click to follow link" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a> </div>
<div><b>Subject:</b> Re: [vtkusers] Image size</div></div></div>
<div><br></div>
<div dir="ltr">Did you tried ResetCameraClippingRange()?<br><br>Jothy<br><br>
<div class="gmail_quote">2010/7/7 Hüseyin Savaş <span dir="ltr"><<a title="mailto:metlord@hotmail.com
CTRL + Click to follow link" href="mailto:metlord@hotmail.com">metlord@hotmail.com</a>></span><br>
<blockquote style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px" name="Compose message area">
<div><font size="2" face="Arial">Hello,</font></div>
<div><font size="2" face="Arial">My question looks fairly simple. </font></div>
<div><font size="2" face="Arial">I have an ImageActor, created via
ImageViewer2.getImageActor() , added to a Renderer that has been added to a
RenderWindow. </font></div>
<div><font size="2" face="Arial">The actual image displayed covers nearly the same
size, whatever image's resolution is and wastes a lot of screen space with
black area. </font></div>
<div><font size="2" face="Arial">I tried scaling, zooming and some extra
stuff to get what I want (having an image that fits to the screen),
but all of these solutions didn't look so native. </font></div>
<div><font size="2" face="Arial">Is there any proper solution to have an image
that fits the whole screen?</font></div>
<div><font size="2" face="Arial">Thanks already for any advice.</font></div>
<div><font size="2" face="Arial">Sincerely.</font></div><br><br>__________
Information from ESET NOD32 Antivirus, version of virus signature database
5259 (20100707) __________<br><br>The message was checked by ESET NOD32
Antivirus.<br><br><a title="http://www.eset.com/
CTRL + Click to follow link" href="http://www.eset.com/" target="_blank">http://www.eset.com</a><br></div><br>_______________________________________________<br>Powered
by <a title="http://www.kitware.com/
CTRL + Click to follow link" href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br><br>Visit
other Kitware open-source projects at <a title="http://www.kitware.com/opensource/opensource.html
CTRL + Click to follow link" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Please
keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to
subscribe/unsubscribe:<br><a title="http://www.vtk.org/mailman/listinfo/vtkusers
CTRL + Click to follow link" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a></blockquote></div></div><br></font></div><br>
<br>
__________ Information from ESET NOD32 Antivirus, version of virus signature database 5260 (20100707) __________<br>
<br>
The message was checked by ESET NOD32 Antivirus.<br>
<br>
<a href="http://www.eset.com/">http://www.eset.com</a><br>
</div>
_______________________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br><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></div></body></html>