gdk_pixbuf_get_from_drawable not actual
- From: Andy Bell <andy bell allbabel com>
- To: gtk-list <gtk-list gnome org>
- Subject: gdk_pixbuf_get_from_drawable not actual
- Date: Tue, 21 Sep 2010 12:56:25 +0200
Hi All,
I am using the following to take a screenshot of my desktop:
GdkPixbuf * screenshot = NULL;
gint width = gdk_screen_width();
gint height = gdk_screen_height();
GdkWindow * root = gdk_get_default_root_window();
screenshot = gdk_pixbuf_get_from_drawable ( NULL, root, NULL,
0, 0, 0, 0,
width, height );
The problem is it isn't the actual screen at the time of the call of the method. It always seems to be a second or less back in time. I am testing on Ubuntu 9.10 within Parallels.
Thanks in advance
Andy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]