Re: pixbuf rotation



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


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