Hi,
I am overlaying JPEG image over base map and trying to fit it exactly with the base map which is in polar stereographic projection using RectangleShape(-140,20,55,20) as in below code ,but it is not exactly sitting on the base map as shown in the uploaded screenshot.
GdiPlusRasterLayer gf3 = null;
imgname = "PWA00_20WX.JPEG";
imgname = DownloadData(imgname);
if (imgname != null)
gf3 = new GdiPlusRasterLayer(sMapDataPath + @"\MapData\charts\" + imgname + ".jpeg", _proj.ConvertToExternalProjection(new RectangleShap<img src="/uploads/default/original/3X/5/0/505753f76edcab6406016ea42c825bb1f59d4572.png" width="690" height="387">e(-140,20,55,20)));
if (gf3 != null)
{
gf3.Transparency = 150;
LayerOverlay test3q = new LayerOverlay();
test3q.Layers.Add("gf3", gf3);
if (winformsMap1.Overlays.Contains("test3q"))
winformsMap1.Overlays.Remove("test3q");
winformsMap1.Overlays.Add("test3q", test3q);
if (test3q.Layers[0].IsOpen == false)
test3q.Layers[0].Open();
winformsMap1.CurrentExtent = test3q.Layers[0].GetBoundingBox();
winformsMap1.Refresh();
}
Can you please suggest me some solution to fix this problem.
Thanks,
Silpa.