如何在 Silverlight 上显示 tiff 文件? [英] How do I display tiff files on Silverlight?

查看:13
本文介绍了如何在 Silverlight 上显示 tiff 文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 Silverlight 应用程序上显示 tiff 文件?我可以显示除 tiff 以外的任何图像格式,有人可以帮助我吗?谢谢.

How do I display tiff files on a Silverlight application? I can display any image format except tiff, can anyone help me? Thanks.

推荐答案

我成功地在 Silverlight 中显示了 TIFF.将免费的 LibTiff.NET 库移植到 Silverlight 很容易,只需 3-4 需要微调.

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.

该库本身非常类似于传统,使用起来很原始,仍然需要了解 TIFF 格式的内部工作原理,以便能够以自己需要的方式提取图像数据.

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.

但这是可行的,然后可以将这些零碎的部分凿成一个WriteableBitmap.

But it's doable and the bits and pieces can then be chiseled into a WriteableBitmap.

这篇关于如何在 Silverlight 上显示 tiff 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆