How to change intital view?<p>How can I change the initial view of my image?<br/><br/>The image is panoramic, and right now the initial view is stuck to the top of the viewport.<br/><br/>I would like to move the initial view down, to center the image to the viewport, for more convenient zooming into the picture.<br/><br/>thanks in advance,<br/>Sam</p>© 2009 Microsoft Corporation. All rights reserved.Wed, 17 Jun 2009 07:15:42 Z3655d270-cb50-4515-b5fa-9b7a76e5ac85http://social.expression.microsoft.com/Forums/en-US/deepzoomcomposer/thread/3655d270-cb50-4515-b5fa-9b7a76e5ac85#3655d270-cb50-4515-b5fa-9b7a76e5ac85http://social.expression.microsoft.com/Forums/en-US/deepzoomcomposer/thread/3655d270-cb50-4515-b5fa-9b7a76e5ac85#3655d270-cb50-4515-b5fa-9b7a76e5ac85Radeldudelhttp://social.expression.microsoft.com/Profile/en-US/?user=RadeldudelHow to change intital view?<p>How can I change the initial view of my image?<br/><br/>The image is panoramic, and right now the initial view is stuck to the top of the viewport.<br/><br/>I would like to move the initial view down, to center the image to the viewport, for more convenient zooming into the picture.<br/><br/>thanks in advance,<br/>Sam</p>Wed, 17 Jun 2009 06:25:31 Z2009-06-17T06:25:31Zhttp://social.expression.microsoft.com/Forums/en-US/deepzoomcomposer/thread/3655d270-cb50-4515-b5fa-9b7a76e5ac85#781b0408-90f5-4a21-a2df-2de4b31b7c18http://social.expression.microsoft.com/Forums/en-US/deepzoomcomposer/thread/3655d270-cb50-4515-b5fa-9b7a76e5ac85#781b0408-90f5-4a21-a2df-2de4b31b7c18Barunihttp://social.expression.microsoft.com/Profile/en-US/?user=BaruniHow to change intital view?You make changes in the page.xaml.cs file.<br/> <br/> ViewportWidth <br/> The width of the area of the image displayed. This value is in logical coordinates. For example, a value of 1 displays the entire image (no zoom), a value of 0.5 is 200% zoomed in, and a value of 0 is completely zoomed (user cannot see the image at all). A value above 1 is zooming out from the image. For example, a value of 2 means that the image will take up half the size of the <span><span class=input>MultiScaleSubImage</span> </span> control area (50% zoom).<br/> <br/> <br/> The ViewportOrigin<br/> X (-0.02456985) =  The left coordinate of the rectangular area of the image to be displayed. The coordinates of the point are in local coordinates (0-1) relative to the displayed image width.<br/> Y (-0.35426895) = The top coordinate of the rectangular area of the image to be displayed. The coordinates of the point are in local coordinates (0-1) relative to the displayed image width.<br/> <br/> <br/> <pre lang="x-c#"> void msi_ImageOpenSucceeded(object sender, RoutedEventArgs e) { this.msi.ViewportWidth = 0.5; this.msi.ViewportOrigin = new Point(-0.02456985, -0.035426895); ZoomFactor = 0.5; }</pre> See further:<br/> <br/> http://msdn.microsoft.com/en-us/library/cc645050(VS.95).aspx<br/> <br/> <br/>Wed, 17 Jun 2009 07:15:41 Z2009-06-17T07:15:41Z