Select to view content in your preferred language

mapview.getMapDrawingCache() returns null

4665
20
12-30-2011 12:17 PM
SwatiGadey
Emerging Contributor
I am trying to create a bitmap image of the Map (MapView object) as follows:

Bitmap drawingCache = mapview.getDrawingCache(true);
Btimap bitmap = mapview.getDrawingMapCache(0, 0, mapview.getWidth(), mapview.getHeight());
Bitmap drawingCache = mapview.getDrawingCache(false);


This returns a null in my 'bitmap' object. What is the correct way of using mapview.getMapDrawingCache method for getting map image?
0 Kudos
20 Replies
AndyGup
Esri Regular Contributor
Andrew, we've confirmed that this is one of those cases where the NIM was indirectly related and the solution fixed the problem.

-Andy
0 Kudos