Deep zoom composer本身就是一个非常好的工具。我想知道有没有自动作曲的方法?例如,我有100张图片,我想自动合成为10 * 10深度的变焦效果。我正在实施一个后台工作流程,并自动组成深度缩放和发布。我喜欢的输出类型是“图像”和“导出为一个集合(多个图像)”。
是否有参考样本或文件?我使用的是VSTS2008 + C# + .Net 3.5。
发布于 2009-08-09 15:54:19
看看应用程序中包含的关于DeepZoomTools.dll的this post。
发布于 2009-08-10 22:48:30
有一个很好的示例项目here,如果你真的想疯狂地编程生成图像/瓷砖,你可以尝试this MSDN article中引用的那种东西。
我自己没有找到很多关于DeepZoomTools.dll的真实文档,但我创建了一个小的测试Deep服务,将单个上传的图像转换为Deep Zoom源。相关代码为:
public string CreateDeepZoomImage(byte[] abyte, string fileName)
{
ImageCreator ic = new ImageCreator();
string FilePath = Path.Combine(_uploadPath, fileName);
System.IO.FileStream fs = new System.IO.FileStream(FilePath, System.IO.FileMode.Create);
fs.Write(abyte, 0, abyte.Length);
fs.Close();
FileInfo imageFileInfo = new FileInfo(FilePath);
string destination = imageFileInfo.DirectoryName + "\\" + imageFileInfo.Name.TrimEnd(imageFileInfo.Extension.ToCharArray()) + "\\output.xml";
ic.Create(FilePath, destination);
string returnpath = "/Uploads/" + imageFileInfo.Name.TrimEnd(imageFileInfo.Extension.ToCharArray()) + "/output.xml";
return returnpath;
}
其中,返回路径的用法如下:
ZoomImage.Source = new DeepZoomImageTileSource(new Uri(e.Result, UriKind.Relative));
(请原谅草率的代码。不过,它确实可以工作。)
https://stackoverflow.com/questions/1250460
复制相似问题