Skip to content

Instantly share code, notes, and snippets.

@cbarraco
cbarraco / taking screenshot in linux with C
Created October 7, 2015 15:11 — forked from bozdag/taking screenshot in linux with C
This C program takes the whole screenshot of the root window for a given display and saves it in PNG file format.
/*
Grabs a screenshot of the root window.
Usage : ./scr_tool <display> <output file>
Example : ./scr_tool :0 /path/to/output.png
Author: S Bozdag <selcuk.bozdag@gmail.com>
*/