Re: Saving a GdkWindow to a file
- From: Stefan Kost <ensonic hora-obscura de>
- To: "Leandro A. F. Pereira" <leandro linuxmag com br>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Saving a GdkWindow to a file
- Date: Tue, 09 Jan 2007 22:04:29 +0200
Hi,
Leandro A. F. Pereira wrote:
Greetings,
In my application I have to save the contents of a widget to a PNG
file. So far it works (using GDK Pixbuf and gdk_pixbuf_save), but
garbage appears if the window is obscured by another window, or if
some part of it is hidden.
How can someone get a GtkWidget's GdkWindow in a way no garbage will
show up if that window isn't completely visible? I know that GTK+ is
double-buffered, so it must be some way.
as a naive idea, wouldn't it help to bring the window to front? One problem I
have with screenshooting windows is that the widnow decorations are missing.
Does somebody has a pointer to an example that includes the window decodation?
Stefan
By the way, the code I am currently using is available at [1]. See
tree_view_save_image().
[1] http://svn.berlios.de/wsvn/hardinfo/trunk/hardinfo2/util.c?op=file&rev=0&sc=0
Thanks in advance,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]