How to capture desktop screen in Linux and draw in window
I’m new to Linux and I need to port my Windows programs to Linux and need help with.
- I need to take a screenshot.
- I need to create a window without borders and titles that cover the entire screen.
- I need to draw the capture screen on that window.
- I need to alpha blend a black picture on the window with XX% opacity.
All of this can be easily done on Windows using GetDC(NULL), BitBlt(), and AlphaBlend().
Linux looks very difficult when dealing with such a simple program.
For Linux; You can always check the source of scrot — a small, simple screenshot program.