I am currently involved in a project which requires me to repeatedly take snapshots of the screen. I am using qt's grabScreen function to do the same. The screen freezes for half a second every time the program takes a snapshot causing the computer to seem to be very slow :(
Can anybody suggest me a better method of doing this ?
Shift + Alt + PtrScr: This shortcut captures the active window and copies it to the clipboard. Shift + PtrScr: This shortcut capture a specific area to the clipboard. Alt + PtrScr: This shortcut will capture the active window and save it to Pictures.
Use the shortcut keys PrintScreen to capture the whole desktop and Alt+PrintScreen to capture the current window (these also work under Windows). Or select Applications -> Accessories -> Screenshot from the menus. Or type xfce4-screenshooter from the command line. xfce4-screenshooter -f will capture the whole desktop.
If you're OK with doing it in lower level manner, then you should look into one of those xorg tools that I can't remember the name of. It's installed by default and outputs the screenshot in a bitmap format. It's a shame I can't remember the name.
EDIT: I got it! It's "xwd". Cheers.
You could look at the source of, say, ksnapshot
which is the Qt-based KDE app doing this. Its SVN archive is here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With