gdk_pixbuf_get_from_drawable not actual

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux