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
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.
Already answered here:
Screenshot of a Windows application running under wine (linux)
: C, Xlib. :
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