Hello,
we are trying to export the shapefile into an image .In which we are drawing an rectangle shape on the trackshapelayer.we want to display the shapefile which lies inside the rectangle shape into an image .we are using the following code for it :
WpfGeoCanvas canvas = new WpfGeoCanvas();
Collection<SimpleCandidate> labelsInAllLayers = new Collection<SimpleCandidate>();
System.Drawing.Bitmap bitmap = new System.Drawing.Bitmap(600,400);
canvas.BeginDrawing(bitmap, orderMap.CurrentExtent, GeographyUnit.DecimalDegree);
orderMap.TrackOverlay.TrackShapeLayer.Draw(canvas, labelsInAllLayers);
canvas.EndDrawing();
bitmap.Save("\Images_Test\Test.jpg");
but this code is not working. can you please provide us with any sample code for it.
Thanks And Regards,
Hrishikesh Konde.