GTK rotating pixmap

This is a discussion on GTK rotating pixmap within the C Programming forums, part of the General Programming Boards category; Hello Guys, i got this project for school, and we're supposed to make a small drawing interface like paint with ...

  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    3

    Question GTK rotating pixmap

    Hello Guys, i got this project for school, and we're supposed to make a small drawing interface like paint with gtk, where we can draw lines, rectangles and elipses.

    My following queston is, is there a possibility to rotate the pixmap itself, because i have found functions to rotate the pixbuff, but i don't use a pixbuff

    Thanks in advance.

  2. #2
    Just a pushpin. bernt's Avatar
    Join Date
    May 2009
    Posts
    426
    Why not use a pixbuf? It fits your purpose better for a paint interface. And you can rotate it.

    Description

    A gtk.gdk.Pixbuf object contains the data that describes an image using client side resources. By contrast a gtk.gdk.Pixmap uses server side resources to hold image data. Manipulating the image data in a gtk.gdk.Pixmap may involve round trip transfers between a client and a server in X11 while manipulating image data in a gtk.gdk.Pixbuf involves only client side operations. Therefore using gtk.gdk.Pixbuf objects may be more efficient than using gtk.gdk.Pixmap objects if a lot of image manipulation is necessary.

    In addition to the methods associated with a gtk.gdk.Pixbuf object there are a number of functions that can be used to create gtk.gdk.Pixbuf objects from file and inline data.
    Consider this post signed

  3. #3
    Registered User
    Join Date
    May 2010
    Posts
    3
    Thanks for the reply,

    but i have already made alot of my functions using pixmap, is there a way i could copy everything on my pixmap to my pixbuf and vica versa ?

    if so i could use standard functions available

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 09-22-2008, 04:49 AM
  2. Cairo and GTK, still need a pixmap?
    By TriKri in forum Linux Programming
    Replies: 0
    Last Post: 03-18-2008, 04:18 PM
  3. Rotating Log
    By BobS0327 in forum C Programming
    Replies: 4
    Last Post: 09-08-2005, 05:08 AM
  4. Gtk
    By curlious in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 01-01-2005, 11:05 AM
  5. X!!! pixmap cursor!
    By K-$ in forum C Programming
    Replies: 1
    Last Post: 06-20-2002, 06:56 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21