silverlight深度变焦在幕后是如何工作的?
我使用 Silverlight 深度缩放完成了一些示例项目(只是为了好玩)。 这真的很酷而且令人兴奋。 但我很好奇,想知道实现此类目标的幕后工作是怎样的。 Deep Zoom Composer 在其数据源的子文件夹中生成许多图像和少量 XML 文件。
谁能解释一下所有这些东西究竟是如何工作的。 使用什么概念来实现这一目标?
I have done a few sample projects (just for fun) using Silverlight deep zoom. Its really cool and exciting stuff. But I was curious to know about what goes on behind the scenes to achieve this sort of thing. The deep zoom composer generates many images and few XML files within sub folders of its data source.
can anyone explain how exactly all this stuff is working. What concepts are being used to achieve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
查看 Open-Zoom 项目。 它是一个开源项目,因此您可以通过查看 Open-Zoom 的实现来自己回答您的问题:
http://code.google.com/p/open-zoom/
Have a look at the Open-Zoom project. It is an open source project, so you'll be able to answer your question yourself by looking at the implementation of Open-Zoom:
http://code.google.com/p/open-zoom/
据我了解,这类似于他们在游戏中使用的保持帧速率较高的技术; 当某些东西很小时,只获取它的低分辨率版本。 当它们放大时,会获取越来越多的细节。
运行wireshark,您将看到平移/缩放时发生的流量。
该工具的工作是生成数据,使客户能够轻松获得不同分辨率的图像。
As I understand it, it is similar to the techniques they use in games to keep the frame rate up; while something is small, only fetch a low-res version of it. As they zoom in, fetch increasing levels of detail.
Run wireshark and you'll see the traffic happening as you pan/zoom.
The tooling's job is to generate data that lets the client get images at different resolutions without too much pain.
这是一个截屏,展示了深度缩放“平铺金字塔”的外观(以 Flash 方式观看,或者您也可以如果您有 SL3 beta,请进行互动)。
还有一个 DeepZoom Viewer,可让您“探索”深度缩放图像,“有点”像 Windows 资源管理器 -查看每一层及其组成的图像。
这些可能有助于直观地了解 DeepZoom 的工作原理 - 但公认的 Open Zoom 答案无疑可以为您提供最大程度的细节/技术理解。
Here's a screencast showing how a deep zoom 'tile pyramid' looks (watch in flash, or you can interact if you have SL3 beta).
There is also a DeepZoom Viewer that lets you 'explore' a Deep Zoom image "kinda" like Windows Explorer - seeing each layer and what images it consists of.
These might help to visualise how DeepZoom works - but the accepted Open Zoom answer no doubt gives you the greatest level of detail/technical understanding.