[cairo] Example of simple rotation of image using Cairo/GTK?

Jim Norton jimnorton at jimnorton.org
Mon Jun 11 16:12:54 PDT 2012

Hello all,

I am very new to Cairo and fairly new to GTK+. I need to write a  
simple application using GTK+ with Cairo to animate an image by  
rotating a PNG.

I've got some code written that displays the image, but it doesn't  
rotate. My code can be found here: http://pastebin.com/SRbJZPbr

I would be grateful for a simple example demonstrating how this is  
done. I have no idea what I'm missing...

Thank you,

More information about the cairo mailing list