Doriano Blengino wrote:
>
> simple linear transformation is possible by using draw.translate() and
> draw.scale(); draw.reset() will reset the transformation matrix.
> Draw.push() and draw.pop() exist to save and restore the matrix.
>
> I think this is enough to map simple world 2D coordinates; it is
> effective and scales everything but text.
>
> For more complicated things, they should be implemented in software.
>
> Regards,
> Doriano Blengino
>
Hi all
Well, I'm totally lost with this subject. What I'm trying to do is to map
the real world coordinates into a picture of a geographical map of Europe,
for plotting parallels, meridians and some other stuff.
Lets say we have a picture of Europe 800x600px and its real coordinates are:
72N -25W (upper left corner) and -18S 44E (bottom right corner). How do I
translate pixels to coordinates to draw on the map directly using real
coordinates?
I don't understand very well what matrices are, and how to apply with Gambas
syntax.
Any example or explanation on how to accomplish this project are welcome.
This is what I did so far in VB.net, but this is another history... :-)
(in Spanish): http://ea7dfh.es/MapLoc/
Thanks,
Jesus
--
View this message in context:
http://www.nabble.com/Coordinate-system-in-Gambas-Graphics-tp20818380p21004918.html
Sent from the gambas-user mailing list archive at Nabble.com.
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user