Re: GdkPixmap



[ A b h i s h e k ] wrote:
Hi

I needed to know how to copy an image already in GtkImage or GdkPixbuf format to a GdkPixmap format.

First create a pixmap of the correct dimentions:
http://developer.gnome.org/doc/API/2.0/gdk/gdk-Bitmaps-and-Pixmaps.html#gdk-pixmap-new

Then draw pixbuf to it:
http://developer.gnome.org/doc/API/2.0/gdk/gdk-Drawing-Primitives.html#gdk-draw-pixbuf

Cheers,
                        -Tristan



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