[cairo] Transformations usage

cecashon at aol.com cecashon at aol.com
Wed Dec 6 19:03:16 UTC 2017


Hi Daniele,

Is the map background coming from a file or a pixbuf, or are you drawing the map entirely with Cairo?

Cairo can draw pretty fast so usually you don't have to worry about storing a surface and reusing it in GTK. A good technique though. If you draw a complicated background that doesn't change often, it can speed drawing up. There is a GTK gauge widget that uses some of those ideas.


For transformations, there is a GTK drawing program that might be helpful.


It will draw polygons and let you drag points around for interactive drawing along with transforms and animation. If you are using Cairo to draw everything with transforms it might give you some ideas.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20171206/0d13bcb9/attachment.html>

More information about the cairo mailing list