Re: Change the coordinate system for drawing
craf <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <1319202504.2652.1.camel@cristian-desktop> |
-----Mensaje original----- De: Tobias Hoffmann <[email protected]> Para: craf <[email protected]> Cc: Cairo <[email protected]> Asunto: Re: [cairo] Change the coordinate system for drawing Fecha: Fri, 21 Oct 2011 12:25:09 +0200 craf wrote: > Conclusion > ---------- > I tried to use the methods, translated, rotated, transformed, but only > take effect what I want to draw, for example a curve or a line. > >AFAIUI you want the coordinate-transformation to apply also to any >input-events your DrawinArea receives? >This is not handled by cairo. >Any transformation you set in cairo only applies to outputs you make. >You'll have to transform the input coordinates yourself. >I've seen cairo_user_to_device() and cairo_device_to_user() in the C >API, which could be of help to you; there are certainly Python bindings >for them. > Tobias Ok. Thank -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo