How to get a screenshot?

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Sep 21 09:36:32 PDT 2016


On Wednesday, 21 September 2016 at 16:33:58 UTC, Konstantin 
Kutsevalov wrote:
> do anybody know how to get screenshot (for now in Linux only)? 
> May be some library , examples?

simplest might be to just call out to `shellExec("import -window 
root filename.png");` and it will write the file.


More information about the Digitalmars-d-learn mailing list