How to implement pan/zoom on gigapixel bitmaps?

前端 未结 3 1578
庸人自扰
庸人自扰 2021-02-06 08:23

In my project, I\'m using (uncompressed 16-bit grayscale) gigapixel images which come from a high resolution scanner for measurement purposes. Since these bitmaps can not be loa

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-06 08:38

    This CodeProject article: Generate...DeepZoom Image Collection might be a useful read since it talks about generating a DeepZoom image source.

    This MSDN article has a section Dynamic Deep Zoom: Supplying Image Pixels at Run Time and links to this Mandelbrot Explorer which 'kinda' sounds similar to what you're trying to do (ie. he is generating specific parts of the mandelbrot set on-demand; you want to retrieve specific parts of your gigapixel image on-demand).

    I think the answer to "can DeepZoom be used for this?" is probably "Yes", however as it is only available in Silverlight you will have to do some tricks with an embedded web browser control if you need a WinForms/WPF client app.

    Sorry I can't provide more specific answers - hope those links help.

    p.s. I'm not sure if Silverlight supports TIFF images - that might be an issue unless you convert to another format.

提交回复
热议问题