Re: How to translate between coordinate systems
- From: "Michael C" <mike@xxxxxxxxxx>
- Date: Mon, 29 Oct 2007 09:40:53 +1100
"Larry Serflaten" <serflaten@xxxxxxxxxxxxxx> wrote in message
news:eJGih3XGIHA.3768@xxxxxxxxxxxxxxxxxxxxxxx
The first thing I would look into is using VB's own ScaleX and ScaleY
functions. They have to be used with an object (like the form) but other
than that, they are simple to use. Here is a demo that converts Lat and
Lon
to X and Y (the reverse is done just as easy).
Paste the code below into a new form and run it. The rectangle represents
the world, so clicking inside the rectangle produces the lat and lon.
Those
values are converted to the X and Y points for the form and all of that is
displayed in the caption of the form....
I suspect this is a dot net question as PointF is a dot net struct.
Michael
.
- References:
- Re: How to translate between coordinate systems
- From: Larry Serflaten
- Re: How to translate between coordinate systems
- Prev by Date: Re: print large triangular outline using multiple sheets, possible?
- Next by Date: Re: print large triangular outline using multiple sheets, possible?
- Previous by thread: Re: How to translate between coordinate systems
- Next by thread: Re: How to translate between coordinate systems
- Index(es):