Re: pixbuf rotation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Roei Azachi wrote:
> Hi,
> Is there a way to rotate a pixbuf not by a multiple of 90 degrees (using
> gdk_pixbuf_rotate_simple)?
> I would like to rotate it by 10 degrees...

create a cairo image
make a cairo context on that new image
set the transform to be the rotation you want
load your original image
set the cairo source to be that original image
cairo paint
get the image back out (or not depending on your case)

Aron
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux