The following example demonstrates how to export selected map items to an image.
To do this, handle the MapControl.ExportMapItem event and, if the map item is not selected (the ExportMapItemEventArgs.IsSelected property is set to false), set the ExportMapItemEventArgs.Cancel property to true.
Then, call the MapControl.ExportToImage method and provide the map path (where the map image should be stored) and the specified image format ( e.g., png).