[cairo] Translate and scale question

Xenofon Papadopoulos xpapad at gmail.com
Wed Jul 22 02:54:58 PDT 2009


Hello, I'm a Cairo newbie. I'm using Cairo in python to draw on a
DrawingArea with 400x300 device size, but my user coordinations system
ranges from x_min to x_max on the x-axis and from y_min to y_max on the
y-axis (for example from -10 to 10 on the x-axis, and from -20 to 20 on the
y-axis). What are the transformations I have to do to use user coordinates
in draw operations?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cairographics.org/archives/cairo/attachments/20090722/d05089bc/attachment.htm 


More information about the cairo mailing list