Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

New Post: How can I convert pixel coordinate to map coordinate for a gridline?

$
0
0
You have to use pixel coordiates for g.DrawLine.
In your example you'd simply use
g.DrawLine(bluePen, ptf1, ptf2);
because that are the pixel coordinates that correspond to the geographic cooordinates (ptfpr1, ptfpr2) you wanted to use for drawing.

Viewing all articles
Browse latest Browse all 3973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>