How to limit how far one can zoom in & out<p>Is there a way to limit how far the viewer can zoom into or out of the picture?<br/><br/>I would like to stop the zooming in when the viewer reaches the pixel level, and the zooming out to the size of the picture.<br/><br/>To be able to zoom until the picture content either looks blurry or is small on the screen is not very appealing to me.<br/><br/>Is there a way to achieve this, to limit the zoom range?<br/><br/>kind regards,<br/>Sam</p>© 2009 Microsoft Corporation. All rights reserved.Tue, 16 Jun 2009 06:45:12 Zdbf9fc1e-5786-4eb4-9f8d-4d0e959db8fchttp://social.expression.microsoft.com/Forums/en-US/deepzoomcomposer/thread/dbf9fc1e-5786-4eb4-9f8d-4d0e959db8fc#dbf9fc1e-5786-4eb4-9f8d-4d0e959db8fchttp://social.expression.microsoft.com/Forums/en-US/deepzoomcomposer/thread/dbf9fc1e-5786-4eb4-9f8d-4d0e959db8fc#dbf9fc1e-5786-4eb4-9f8d-4d0e959db8fcRadeldudelhttp://social.expression.microsoft.com/Profile/en-US/?user=RadeldudelHow to limit how far one can zoom in & out<p>Is there a way to limit how far the viewer can zoom into or out of the picture?<br/><br/>I would like to stop the zooming in when the viewer reaches the pixel level, and the zooming out to the size of the picture.<br/><br/>To be able to zoom until the picture content either looks blurry or is small on the screen is not very appealing to me.<br/><br/>Is there a way to achieve this, to limit the zoom range?<br/><br/>kind regards,<br/>Sam</p>Mon, 15 Jun 2009 05:55:37 Z2009-06-26T18:44:52Zhttp://social.expression.microsoft.com/Forums/en-US/deepzoomcomposer/thread/dbf9fc1e-5786-4eb4-9f8d-4d0e959db8fc#9816b370-79f8-4ea3-852d-881fd0eb8184http://social.expression.microsoft.com/Forums/en-US/deepzoomcomposer/thread/dbf9fc1e-5786-4eb4-9f8d-4d0e959db8fc#9816b370-79f8-4ea3-852d-881fd0eb8184Barunihttp://social.expression.microsoft.com/Profile/en-US/?user=BaruniHow to limit how far one can zoom in & outYou can change the code in the page.xaml.cs file. I'm not sure if there are other ways of setting it but this is how I set it: <br/> <br/> In the example below, the zoom level is set between 0.45 and 128<br/> <br/> <br/> <pre lang="x-c#"> private void Zoom(double newzoom, Point p) { if (newzoom &lt; 0.45) { newzoom = 0.45; } if (newzoom &gt; 128) { newzoom = 128; } msi.ZoomAboutLogicalPoint(newzoom / zoom, p.X, p.Y); zoom = newzoom; }</pre>Tue, 16 Jun 2009 04:02:35 Z2009-06-16T04:02:35Z