WPF Image control to progressively load multipage tiff

99封情书 提交于 2019-12-01 18:57:50
Adriaan

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

I don't think any language has a control for this natively. I would grab a copy of the TIFF specification and write my own solution.

http://partners.adobe.com/public/developer/tiff/index.html

You may want to try and adapt existing TIFF viewer controls, however:

http://www.codeproject.com/KB/miscctrl/Image_Viewer_Control.aspx; http://www.atalasoft.com/cs/forums/thread/11473.aspx

I can't vouch for the quality of the above code, however.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!