如何使用控件或类/函数在 Silverlight 客户端内部将 TIFF 转换为 JPG?
我们正在 Silverlight 中创建一个客户端,它将显示大量 TIFF 图像。 Silverlight 本身不支持 TIFF。我需要一个控件/类来在 Silverlight 客户端内运行时将 tiff 转换为 jpg。有什么想法吗?
We are creating a client in Silverlight that will show a lot of TIFF images. Silverlight natively do not support TIFF. I need a control/class to convert tiff to jpg in runtime inside the Silverlight client. Any idea?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
上周五在 Silverlight 论坛中,我收到了这篇文章:
Re: How to Convert TIFF to JPG Inside Silverlight, client side, using a control or a class/function?
2009 年 12 月 18 日下午 5:38 |
如果您愿意使用第三方库,请查看 Accusoft Pegasus 提供的 ImageGear for Silverlight。它是一个 100% 托管的 Silverlight 工具包 (http://www.accusoft.com/ig-silverlight。 htm),并且完全在客户端上运行。包含 TIFF 支持(以及许多其他格式)。
希望这有帮助,
凯西
In Silverlight forum last friday I received this post:
Re: How to Convert TIFF to JPG Inside Silverlight, client side, using a control or a class/function?
12-18-2009 5:38 PM |
If you're willing to use a third-party library, check out ImageGear for Silverlight provided by Accusoft Pegasus. It's a 100% managed Silverlight toolkit (http://www.accusoft.com/ig-silverlight.htm), and runs entirely on the client. TIFF support is included (among lots of other formats).
Hope this helps,
Casey
我成功地在 Silverlight 中显示 TIFF。将免费的 LibTiff.NET 库移植到 Silverlight 很容易,只需需要 3-4 个小调整。
该库本身非常传统,使用起来很原始,人们仍然需要了解 TIFF 格式的内部工作原理,以便能够按照需要的方式提取图像数据。
但它是可行的,然后可以将这些零碎的内容雕刻成
WriteableBitmap
。I was successful displaying TIFFs in Silverlight. It's easy to port the free LibTiff.NET library to Silverlight, just 3-4 minor tweaks required.
The library itself is quite legacy-like and raw to use and one still needs to have some knowledge about the inner workings of the TIFF format in order to be able to extract the image data the way one needs it.
But it's doable and the bits and pieces can then be chiseled into a
WriteableBitmap
.目前不确定您是否对解决方案感兴趣,但我们刚刚发布了支持 Silverlight 的 LibTiff.Net 2.0 、改进的文档和示例。
源包中有 Silverlight 测试应用程序,演示了如何在 Silverlight 中从 TIFF 图像创建 WriteableBitmap。也许它会对您或其他人有所帮助。
Not sure you are interested in solution by now, but we've just released LibTiff.Net 2.0 with Silverlight support, improved documentation and samples.
There is Silverlight Test Application in source package that shows how to create WriteableBitmap from TIFF images in Silverlight. Maybe it will help you or others.