<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Deep Zoom Collections explained Part 1 - coordinates and viewports</title><link>http://blogs.msdn.com/b/lutzg/archive/2009/03/12/deep-zoom-collections-explained-part-1-coordinates-and-viewports.aspx</link><description>I've been getting this question a lot, even from members of my team. Why are the coordinates so weird in deep zoom? They are just totally confusing for laying out images! Why do you have this odd ViewportOrigin and ViewportWidth and why are the numbers</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Deep Zoom Collections explained Part 1 - coordinates and viewports</title><link>http://blogs.msdn.com/b/lutzg/archive/2009/03/12/deep-zoom-collections-explained-part-1-coordinates-and-viewports.aspx#9646418</link><pubDate>Thu, 28 May 2009 10:58:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9646418</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Added my thoughts to my blog:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://brainporridge.blogspot.com/"&gt;http://brainporridge.blogspot.com/&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9646418" width="1" height="1"&gt;</description></item><item><title>re: Deep Zoom Collections explained Part 1 - coordinates and viewports</title><link>http://blogs.msdn.com/b/lutzg/archive/2009/03/12/deep-zoom-collections-explained-part-1-coordinates-and-viewports.aspx#9635228</link><pubDate>Fri, 22 May 2009 17:26:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9635228</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;This blog helped me:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/jaimer/archive/2008/06/23/working-with-collections-in-deep-zoom.aspx"&gt;http://blogs.msdn.com/jaimer/archive/2008/06/23/working-with-collections-in-deep-zoom.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It says &amp;quot;If viewportwidth of subimage is 1 then it occupies the entire width of the msi. &lt;/p&gt;
&lt;p&gt;If viewportwidth of the subimages is 2 then is occupies half the width of the msi.&amp;quot;&lt;/p&gt;
&lt;p&gt;So, in my example above, the actual width of the subimage is&lt;/p&gt;
&lt;p&gt;Actual Width of Sub Image = &amp;nbsp; 1/ViewPortWidth * MSI.ActualWidth&lt;/p&gt;
&lt;p&gt;Then, ViewPortOrigin X and Y are factors of ActualWidth of SubImage.&lt;/p&gt;
&lt;p&gt;So if VPO.X (or VPO.Y) = -1 it means:&lt;/p&gt;
&lt;p&gt;-1 * 1/ViewPortWidth * MSI.ActualWidth&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9635228" width="1" height="1"&gt;</description></item><item><title>re: Deep Zoom Collections explained Part 1 - coordinates and viewports</title><link>http://blogs.msdn.com/b/lutzg/archive/2009/03/12/deep-zoom-collections-explained-part-1-coordinates-and-viewports.aspx#9635206</link><pubDate>Fri, 22 May 2009 17:12:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9635206</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Hmmmm:&lt;/p&gt;
&lt;p&gt;ViewPortOrigin of the SubImage seems to be the position of the SubImage within the MultiScaleImage control not the position of the SubImage compared to the image its displaying.&lt;/p&gt;
&lt;p&gt;for example:&lt;/p&gt;
&lt;p&gt; If I have an MultiscaleImage of 400 * 300 and&lt;/p&gt;
&lt;p&gt; SubImage.ViewPortOrigin = (-4,0) and&lt;/p&gt;
&lt;p&gt; SubImage.ViewPortWidth = 5.5 then the X coordinate of the SubImage.ViewPortOrigin.X is :&lt;/p&gt;
&lt;p&gt;-4 * 1/5.5 * 400&lt;/p&gt;
&lt;p&gt;(SubImage.ViewPortOrigin.X * (1/SubImage.ViewPortWidth) * Multiscale.ActualWidth)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9635206" width="1" height="1"&gt;</description></item><item><title>re: Deep Zoom Collections explained Part 1 - coordinates and viewports</title><link>http://blogs.msdn.com/b/lutzg/archive/2009/03/12/deep-zoom-collections-explained-part-1-coordinates-and-viewports.aspx#9632053</link><pubDate>Wed, 20 May 2009 13:54:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9632053</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Hmmm, in a collection scenario, is the ViewPortOrigin of the MultiscaleSubImage relative to the image it's displaying or the uber-image of all the images in the MultiScaleImage?&lt;/p&gt;
&lt;p&gt;How do ViewPortOrigin.X and .Y relate to the position of the MultiscaleSubImage within the MultiScaleImage? &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9632053" width="1" height="1"&gt;</description></item><item><title>re: Deep Zoom Collections explained Part 1 - coordinates and viewports</title><link>http://blogs.msdn.com/b/lutzg/archive/2009/03/12/deep-zoom-collections-explained-part-1-coordinates-and-viewports.aspx#9631996</link><pubDate>Wed, 20 May 2009 13:14:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9631996</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Aha! Now that it's explained, it makes sense. I think this was the right way to go.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9631996" width="1" height="1"&gt;</description></item><item><title>re: Deep Zoom Collections explained Part 1 - coordinates and viewports</title><link>http://blogs.msdn.com/b/lutzg/archive/2009/03/12/deep-zoom-collections-explained-part-1-coordinates-and-viewports.aspx#9586817</link><pubDate>Tue, 05 May 2009 00:47:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9586817</guid><dc:creator>William Storage</dc:creator><description>&lt;p&gt;The terminology/nomenclature Microsoft has chosen for this is workable enough, but it seems semantically incorrect, and is at odds with common usage. A Viewport is what you look through, a window through which you see part of the picture. The entire picture might better be termed a canvas. You see part of a canvas through a viewport. The top left of the canvas, if called CanvasOrigin, would likely not confuse people by typically being negative coordinates. Any mapmaker - apparently like most Silverlight users trying out the MultiScaleImage, certainly would expect &amp;quot;ViewportOrigin&amp;quot; to refer to the coordinates of the ViewPort relative to those of the canvas - thus positive coordinates.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9586817" width="1" height="1"&gt;</description></item><item><title>Deep Zoom Collections explained Part 1 - coordinates and viewports - Lutz Gerhard</title><link>http://blogs.msdn.com/b/lutzg/archive/2009/03/12/deep-zoom-collections-explained-part-1-coordinates-and-viewports.aspx#9474576</link><pubDate>Sat, 14 Mar 2009 07:21:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9474576</guid><dc:creator>DotNetShoutout</dc:creator><description>&lt;p&gt;Thank you for submitting this cool story - Trackback from DotNetShoutout&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9474576" width="1" height="1"&gt;</description></item><item><title>Click &amp;amp; Solve &amp;raquo;  Deep Zoom Collections explained Part 1 - coordinates and viewports </title><link>http://blogs.msdn.com/b/lutzg/archive/2009/03/12/deep-zoom-collections-explained-part-1-coordinates-and-viewports.aspx#9472780</link><pubDate>Fri, 13 Mar 2009 09:33:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9472780</guid><dc:creator>Click &amp;amp; Solve &amp;raquo;  Deep Zoom Collections explained Part 1 - coordinates and viewports </dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.clickandsolve.com/?p=22350"&gt;http://www.clickandsolve.com/?p=22350&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9472780" width="1" height="1"&gt;</description></item></channel></rss>