<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div>Hi All,</div><div><br></div><div>I'm trying to implement the MDIImageViewer from here: <a href="https://github.com/tpgit/MDIImageViewer" target="_blank">https://github.com/tpgit/MDIImageViewer</a></div><div><br></div><div>I have managed to make the majority of changes I needed, but have one thing that I just can't work out. I am loading a png image that is 1024x1024 pixels into the viewer and it is giving me an automatic zoom ratio (from the fitInView call) of 46% and a frame size of 476x476 pixels.</div><div><br></div><div>I know I can manually resize the view, but I was wondering if there would be an easy way to set the frame size to be 512x512 automatically (all my images will be multiples of 512 in size)?</div><div><br></div><div>Any help would be greatly appreciated.</div><div><br></div><div>Regards</div><div><br></div><div>Shando</div>                                     </div></body>
</html>