Hi Guys,
Using the WpfMap control (version 4.5) what we want to do is to obtain a bitmap of the displayed map without the control being visible to the user. Obtaining a bitmap of the control is easy; the hard bit is getting the control to render correctly when it is not visible before taking the snapshot for the bitmap.
Scenario would be something like:-
1. Create a window with the WpfMap embedded on it.
2. Load a shapefile for the World.
3. Add a bunch in InMemoryFeature layers.
4. Zoom to the BoundingBox enclosing the InMemoryFeature layers.
5. Size the window to obtain the correct bitmap size;
6. Refresh the map.
7. Snapshot the control to obtain the bitmap
8. Dispose of the window.
We already have steps 1-6 and 8 done, its step 7 I can’t find a way of doing without making the window visible in order that the control draws before we grab the bitmap. If it is not visible no drawing seems to take place.
Any thoughts?
Regards
John