Re: saving pixmap



On Wed, 2 Mar 2005, [ A b h i s h e k ] wrote:
i have another query. Does anyone know how to save an image to disk. i have the pointer to the image and now i want to save it to disk. Any suggestions.

If you have a GdkPixbuf, you can save it to a stardard image format with gdk_pixbuf_save() and similar functions. If all you have is a GdkDrawable use gdk_pixbuf_get_from_drawable() to convert it to a GdkPixbuf, then save the GdkPixbuf to disk.

See:
http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/gdk-pixbuf-file-saving.html
http://developer.gnome.org/doc/API/2.0/gdk/gdk-Pixbufs.html

JV



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