0

Is there any predefined control in WPF or VS2010 to implement the Image Zooming functionality (like Googlemaps) for a bitmap displayed over a panel using C#?
My bitmap will be minimum 8GB in Size.

Thanks in advance
Murali

Hans Passant
  • 873,011
  • 131
  • 1,552
  • 2,371
Krishna
  • 628
  • 1
  • 7
  • 10
  • 2
    WPF or Windows Forms or both are ok for you? 8 GB? How are you going to even load such bitmap in the computer's memory? – Davide Piras Sep 20 '11 at 22:42
  • for WPF, check this one: http://stackoverflow.com/questions/741956/wpf-pan-zoom-image – Davide Piras Sep 20 '11 at 22:48
  • See this answer [link](http://stackoverflow.com/questions/2552812/image-control-with-pan-and-zoom-ability/2552846#2552846) – Shuhel Ahmed Sep 20 '11 at 22:50
  • 1
    If you don't find one, you need to consider tiling. Loading 8GB into memory is not good (if at all possible!), but you could avoid that by presenting smaller images (tiles) to the user that show him the current view at the current zoom... well, like Googlemaps does it. – ANeves thinks SE is evil Sep 20 '11 at 23:40

1 Answers1

1

There is DeepZoom for Silvelight. There is no such thing in WPF. It was planned for WPF4, but removed before RTM.

Update: Loading images of this size is pretty uncommon. You should consider tiling as others suggested. Also consider if you really need load all data at once. If the image has size of for example 30000x30000 then the user do not really need/can't to see all this data. Use tiling and appropriate image format (jpg etc) for each zoom level.

Relevant links:

Single objects still limited to 2 GB in size in CLR 4.0?

Pushing the Limits of Windows: Physical Memory

Community
  • 1
  • 1
Tomas Voracek
  • 5,735
  • 1
  • 22
  • 39
  • Thanks Tomas. Is there any standard procedure to load the huge bitmaps. I know that there is an Operating System limitation of 2GB even for the 64-bit machines. But I still need to load these images. I dont hink Microsoft hasn't considered this case. Please let me know, if there is any standard procedure to load these huge bitmaps. – Krishna Sep 21 '11 at 23:27