This project has moved and is read-only. For the latest updates, please go here.

Problems Centering Image (VB.NET)

Topics: Algorithms, General Topics, SharpMap Project, SharpMap v0.9 / v1.x, WinForms Controls
Apr 24, 2009 at 10:21 PM
When I use = myMap.ImageToWorld(new system.Drawing.Point(e.X,e.Y)
MapImage1.Image = myMap.GetMap()

the map doesn't center on where I click and tens to shift down and to the right... any ideas as I am going barmy trying to see what's occurring


Apr 25, 2009 at 2:18 PM
I finally figured it out.  The code was fine... I was a bit stupid and set the MapImage1 widget to stretch or autosize.  When reset to Normal all works fine.