Saving a GdkWindow to a file
- From: "Leandro A. F. Pereira" <leandro linuxmag com br>
- To: gtk-app-devel-list gnome org
- Subject: Saving a GdkWindow to a file
- Date: Wed, 3 Jan 2007 13:03:18 -0200
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.
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,
--
Leandro A. F. Pereira <leandro tia mat br>
Developer, Tiamat Software Wizardry.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]