
9 May
2013
9 May
'13
5:37 a.m.
On Thu, May 09, 2013 at 01:36:52PM +1200, Chris Wong wrote:
On Tue, May 7, 2013 at 5:18 AM, Jeanne-Kamikaze
wrote: Looks like an interesting library. Will it be able to read pixels from a window at some point?
Not sure -- I have no idea how screen capturing works in X11. Calling gnome-screenshot should probably cover most use cases.
I just took 2 minutes looking at the source code for scrot (which is about as simplistic a screen grabber as you'll find), and it looks fairly simple: it uses giblib, which provides a function called gib_imlib_create_image_from_drawable, which does exactly that. Not sure if Haskell bindings for giblib exist already though.