Re: [gnomemm] Export Gnome::Canvas to image file (png, jpg, gif, ...)



Thanks.

I'm going to try it right now.


Sergio Pascual wrote:

I use:

Glib::RefPtr<Gdk::Drawable> window=canvas->get_window()

Glib::RefPtr<Gdk::Pixbuf> pixbuf=Gdk::Pixbuf::create(window,window->get_colormap(),0,0,0,0,500,500);
// The numbers are related with the size of the window, please see the
docs

//Then save the pixbuf
pixbuf->save(filename,"png");

canvas is of type Gnome::Canvas



El vie, 28-11-2003 a las 13:27, Manuel Martínez escribió:
Hello.

   I'm using Gnome::Canvas to generate a group of pretty graphics.
Is there any way to export the content of the Gnome::Canvas to an image file (png, jpg, gif, ...)?

Thank you.


_______________________________________________
gnomemm-list mailing list
gnomemm-list gnome org
http://mail.gnome.org/mailman/listinfo/gnomemm-list





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