Re: GtkDrawingArea -> bmp file



Look at gdk_pixbuf:

GdkPixbuf *gdk_pixbuf_get_from_drawable    (GdkPixbuf *dest,
                                            GdkDrawable *src,
                                            GdkColormap *cmap,
                                            int src_x,
                                            int src_y,
                                            int dest_x,
                                            int dest_y,
                                            int width,
                                            int height);



gboolean    gdk_pixbuf_save                 (GdkPixbuf *pixbuf,
                                            const char *filename,
                                            const char *type,
                                            GError **error,
                                            ...);


Gene Heskett wrote:

Hello.

For drawing I use GtkDrawingArea.

And I want to know is there any way to save picture which
I draw in GtkDrawingArea as bmp file?

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list





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