我了解到我们应该将一个.bin文件分配给Siverlight MultiScaleImage的源属性。例如,我从这里学到了(参考事件的匿名方法一节中的代码示例),
http://www.soulsolutions.com.au/Blog/tabid/73/EntryId/410/Silverlight-Deep-Zoom-Sample-Code-Part-2.aspx
但我已经尝试使用导出功能的深度缩放合成器永远不会生成.bin文件。这是我的屏幕截图。你知道出什么问题了吗?
(我使用的是VSTS2008+ .Net 3.5 +C#。)
发布于 2009-07-14 06:27:27
可以通过两种不同的方式设置MultiScaleImage控件的Source属性。如果您在XAML中设置它,您可以直接指向dzc_output.xml文件(位于GeneratedImages文件夹中),如下所示:
<MultiScaleImage x:Name="Foo" Source="/GeneratedImages/dzc_output.xml" />
您也可以在代码中设置它,您需要采取额外的步骤将其指定为DeepZoomImageTileSource:
Foo.Source = new DeepZoomImageTileSource(
new Uri("/GeneratedImages/dzc_output.xml", UriKind.Relative));
希望这能有所帮助!
发布于 2009-07-05 18:31:55
在GeneratedImages文件夹中是一个名为dzc_output.xml的xml文件,它应该是MultiScaleImage的新端点。
在新版本的DeepZoomComposer中,bin文件格式已被这个新的xml文件替换。
https://stackoverflow.com/questions/1082425
复制相似问题