Thanks for the example.
I'm currently writing a OpenStreetMap/GoogleMaps Tile viewer. The user should be able to scroll the map around and I'm just thinking about how to do this.
The first problem is that I have not one image but the map is created from many tiles of 256x256 pixels. My thoughts here are that I have one image object for displaying that can be moved around as in your example. If the user releases the mousebutton/stylus then the program rebuilds the content of the display image object by copying the bitmaps of all needed map tiles to the right positions and then center the display image again on the screen. So the user can drag it again.
Does anybody have some other idea on how to glue the map tiles together to a whole image?
Now I have tested your example code with moving a fullscreen size image (240x320 on my device) around with displaying the image while moving. This is far too slow for my application. Are there any hints how to speed this up?
Thanks a lot
Markus
|