Re: [gnomemm] Writing the contentes of Gnome::Canvas to a file
- From: ERDI Gergo <cactus cactus rulez org>
- To: Sergio Pascual <spr astrax fis ucm es>
- Cc: gnomemm-list gnome org
- Subject: Re: [gnomemm] Writing the contentes of Gnome::Canvas to a file
- Date: Thu, 20 Feb 2003 15:33:21 +0100 (CET)
On Thu, 20 Feb 2003, Sergio Pascual wrote:
> I'm tryng to write the contentes of a Gnome::Canvas::Canvas to a image
> file.
You can get a pixbuf from a drawable by using the appropriate
Gdk::Pixbuf::create() overload. To get the drawable of the canvas, use
get_window() which returns a Gdk::Window.
Of course, this involves a roundtrip to the X server so there may be a
better solution, but I don't know if you can get the backing buffer of a
GTK+ widget (since GTK+ already does double buffering, there has to be a
place on the client where widgets are rendered).
You could also try to send a synthesized expose event, but that too draws
into a GdkWindow.
--
.--= ULLA! =---------------------. `We are not here to give users what
\ http://cactus.rulez.org \ they want' -- RMS, at GUADEC 2001
`---= cactus cactus rulez org =---'
Our lips met passionately - then she closed her legs and broke my glasses.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]