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:


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!

gtk-app-devel-list mailing list
gtk-app-devel-list gnome org

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