Q: How can I implement zooming on current mouse position over a picturebox, something like zooming in Google Maps?
I am designing a simple GIS / ma
I managed to tweak the calculation of the location in this line of code. It's working fine, it is zooming just the way I need it.
pbxMapa.Location = new Point(pbxMapa.Location.X + (int)(((pbxMapa.Location.X - mouseXPbx) / 10) * zoomRatio), pbxMapa.Location.Y + (int)(((pbxMapa.Location.Y - mouseYPbx) / 10) * zoomRatio));