Exporting RadMap to an Image
Environment
Product Version | 2018.1 220 |
Product | RadMap for WinForms |
Description
An article demonstrating how the currently visible part of map control can be exported to an image. The suggested approach will also handle a case painting the layers, making it possible for any pins to be exported as well.
Solution
RadMap will be exported with the help of the Graphics and RadGdiGraphics classes.
Figure 1: Exporting RadMap
Control | Exported Image |
---|---|
![]() |
![]() |
The control will be set up with the OpenStreetMapProvider including a layer with pins.
Initial Setup
Actual Export Implementation
As of R2 2021 calling the TranslateTransform method for the RadGdiGraphics object is not necessary. For older versions, please make sure that the method is executed.
A complete solution providing a C# and VB.NET project is available here.