I have a web application that uses the GdiPlusRasterLayer and allows drawing using the source code from the DrawEditShapes.aspx.cs sample file. When I execute code to save the raster layer + shapes as an image (using Map1.GetBitmap) I notice the shape drawn on the map does not precisely match the shape saved in the bitmap. The difference between the drawn and saved shape can be about a foot at the 500 foot zoom level. Is this considered "within tolerance" for the translation between the on-screen display of the shape in the web control and the saved version?
I'm attaching the raster JPEG, the world file, the snapshot of the shape as drawn on the screen and the snapshot of the image as rendered through Map1.GetBitmap. As you can see from the attached files, the drawn shape (green line) does not cover the white line (parking line) in both shapes the same way.
Your feedback is greatly appreciated...
gdiPlusImageLayer.UpperThreshold =
gdiPlusImageLayer.LowerThreshold = 0;
Map1.StaticOverlay.Layers.Add(gdiPlusImageLayer);
string imageFile = Classes.GeoLookupHelper.GetImage(rectangleShape);GdiPlusRasterLayer gdiPlusImageLayer = new GdiPlusRasterLayer(imageFile);double.MaxValue;
1109-drawing_on_map.zip (245 KB)