Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I programatically take a screenshot of an application in Linux?

How do I programatically take a screenshot of an application in Linux? I'm using c++. Any idea? For windows there are a lot of resources but I can't find anything for linux

Any help? Thanks

like image 666
Noyoudont Avatar asked May 07 '09 20:05

Noyoudont


People also ask

How do I take a screenshot of a specific area in Linux?

Alt + Print Screen to take a screenshot of a window. Shift + Print Screen to take a screenshot of an area you select.


1 Answers

Already answered here:

Screenshot of a windows application running under wine (linux)

Edit: if you want to do it in C, try Xlib. Some links:

  • http://tronche.com/gui/x/xlib/
  • http://www.roard.com/docs/cookbook/cbsu19.html
like image 71
ChristopheD Avatar answered Oct 13 '22 00:10

ChristopheD