How to programmatically take a screenshot of an application in Linux?

How can I programmatically take a screenshot of an application on Linux? I am using C ++. Any ideas? There are many resources for windows, but I can not find anything for linux

Any help? Thanks

+5
source share
3 answers

If you just need a screen recorder, try using xvidcap . If you want to make your own, try looking at the sources. I'm not quite sure how this works. I guess it somehow uses the XShm extension.

+1
source

Can't you do this with http://www.imagemagick.org/script/index.php ?

It usually goes into the linux repository, and you can do much more than just shoot with it ... http://tips.webdesign10.com/how-to-take-a-screenshot-on-ubuntu-linux

-1
source

All Articles