Screenshots with package or cmd tool

Hello there !

Is there a native Julia package to take a screenshot?
Alternatively does anybody know if it is possible to read the output of
a cmd tool like xwd ( X Window Dump ) directly into a Julia object ?

Thanks!

If anyone else needs to know, this works under linux with the xwd tool:

using ImageMagick

function screenshot()
    data = read(pipeline(`xwd -root`, `convert xwd:- png:-`))
    im = ImageMagick.load_(data)
end
2 Likes