Re: Rotating a Gdk::Pixbuf by degree



> Hi,
> 
> the gdkmm reference documentation only speaks of a rotate_simple
> function of Gdk::Pixbuf, which rotates a Pixbuf by a multiple of 90
> degress. How can I rotate a pixbuf by let´s say 30 degree then?
I once wrote such code that rotates a pixbuf by a variable amount of
degrees. However, I cannot find it anymore. What I have done is mostly
just porting the relevant SDL_rotozoom [1] functions  to work on
GdkPixbufs instead of SDL surfaces. Perhaps you could also have a look
at how e.g. gimp rotates images.

Greetings,
Armin

 [1] http://www.ferzkopp.net/joomla/content/view/19/14/

Attachment: signature.asc
Description: This is a digitally signed message part



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