WPF Image控件加载渐进多页TIFF [英] WPF Image control to progressively load multipage tiff

查看:405
本文介绍了WPF Image控件加载渐进多页TIFF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道是否有一个现有的控制,或者如果它是简单制定一个控制,允许将逐步通过网络加载一个多页TIFF?我与高达数千页一些TIFF图像的工作,这将是巨大的,有形象开始尽快出现一个或多个页面下载,只需要检索图像的其他页面,或按需下载或当带宽是可用的。我认识到,TIFF图像有一定的结构要求和周围的元数据,但预计这应该是可能的。


解决方案

我建议你开始使用的libtiff LibTiff.NET
这最后一个是容易下手,我有好的经验,到目前为止。它可以让你过载的顺序完全控制。它不会对你试图加载的TIFF格式完全相同某种程度上取决于。到网页随机存取总是可能的。此外,它会给你在内存资源使用良好的控制。



以前的建议先从规范恕我直言的噩梦配方。有TIFF这么多不同的解释(包括字节顺序依赖于机器),你会花大量的时间实施和测试。该的libtiff是参考,它有一个非常温和的形式授权。请检查我在计算器上这里

I'm wondering if there's an existing control or if it would be straightforward to develop a control allowing a multipage tiff to be progressively loaded over a network? I'm working with some tiff images that are up to thousands of pages, and it would be great to have the image start to appear as soon as a page or pages are downloaded, and only retrieve additional pages of the image as needed, or download on demand or when bandwidth is available. I realise that a TIFF image has certain structural requirements and surrounding metadata, but expect that this should be possible.

解决方案

I suggest you start using LibTiff or LibTiff.NET. This last one is easy to start with and I have good experiences so far. It will allow you full control over the order of loading. It does depend somewhat on the exact formatting of the tiff you're trying to load. Random access to pages is always possible. Furthermore it will give you good control over memory resource usage.

The previous advice to start with the specification is imho a recipe for a nightmare. There are so many different interpretations of TIFF (including byte ordering dependent on the machine) that you'll spend a lot of time implementing and testing. The LibTIFF is the reference and it has a very mild license form. Please check my question on StackOverflow here

这篇关于WPF Image控件加载渐进多页TIFF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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