Hi.
I found 'TestGenerateTilingImages' sample in this forum.
When I ran it to generate tile cache of a jpeg image, two problems were occured.
(The image I've used is at: earth.esa.int/satelliteimage...004_or.jpg )
1st problem: An 'InvalidFormatException' occurs at 'winformsMap1.Refresh();' in btnLoadMap_Click() method.
This problem was solved by replacing second parameter of FileBitmapTileCache() constructor with a real string like "worldmap_cache". However, I don't know why the original code doesn't work because I'm sure that you checked it running. I'm using Windows Vista 64bit (Korean version). Please check it.
2nd problem: It fails to generate tile cache for more zoom levels.
I added more zoom levels (6, 7, 8, 9, 10) to resultZoomLevels to generate more detailed tile cache. However, it generated an exception around zoom level 8. It seemed like it's because of the bitmap width/height calculation logic, but I couldn't understand the TileMatrix and GetIntersectingRowColumnRange() things.
I need to make a program that generates tile caches from a bunch of images which I only know the Lat/Lon of four corners. I don't even know how many zoom levels should be cached. Please guide me how I can do it.
Thanks.