Re: Rotating a Gdk::Pixbuf by degree



Or you could look at using cairomm which appears to have rotation functions.

http://cairographics.org/documentation/cairomm/reference/classCairo_1_1Context.html#4bb8920924faa97b54481c289e5f5c8c

Paul

On 11/3/06, Armin Burgmeier <armin arbur net> wrote:
> 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/


_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list







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