[Gambas-user] Coordinate system in Gambas Graphics
Doriano Blengino
doriano.blengino at ...1909...
Fri Dec 5 17:24:21 CET 2008
Charles Capaday ha scritto:
> Thanks draw.point(x,y) is in pixels, not coordinate values of ones coordinate system, anyway Benoit answered the question there are no commands for coordinate translation and one has to do it oneself, which is not hard, je vous remercie!
>
Hmm,
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
More information about the User
mailing list