From: Axel S. <A....@ke...> - 2007-05-15 15:47:12
|
On Tue, 2007-05-15 at 15:35 +0100, Eric wrote: > Hi all, > > Can Gtk2hs be used to write programs to take screenshots? I think we're lacking some functions for that. See: http://www.php-gtk.eu/code-hints/grabbing-a-screenshot-with-gdk We would need to bind: gtk_default_root_window to get the Drawable that represents the whole screen. But you can already use any other Drawable and use pixbufGetFromDrawable to get a screenshot of that window. So it is already possible to take the screenshot of windows in your own application. Do you need to take a screenshot of other applications or the whole desktop? Axel. |