How can I save the pixel of a GdkWindow/GdkWidget to a file?
- From: yinglcs aim com
- To: gtk-list gnome org
- Subject: How can I save the pixel of a GdkWindow/GdkWidget to a file?
- Date: Fri, 09 Dec 2005 16:59:09 -0500
Can someone please tell me can I save the pixel of a
GdkWindow/GdkWidget to a file?
The only think I find is saving from a GdkDrawable (the 2 functions
below). But how can I get a GdkDrawable from a GdkWidget/GdkWindow?
GdkPixbuf* pixBuf = gdk_pixbuf_get_from_drawable (NULL,
gd, NULL, 0, 0, 0, 0, w, h);
gdk_pixbuf_save (pixBuf, "snapshot.png", "png", &err, NULL);
Check Out the new free AIM(R) Mail -- 2 GB of storage and
industry-leading spam and email virus protection.
] [Thread Prev