Re: [gnomemm] Export Gnome::Canvas to image file (png, jpg, gif, ...)
- From: =?utf-8?b?TWFudWVsIE1hcnTDrW5leg==?= <Manuel Martinez isotrol com>
- To: Sergio Pascual <spr astrax fis ucm es>
- Cc: gnomemm-list gnome org
- Subject: Re: [gnomemm] Export Gnome::Canvas to image file (png, jpg, gif, ...)
- Date: Fri, 28 Nov 2003 16:27:07 +0100
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]