Click to See Complete Forum and Search --> : Get image of desktop..?


tidilipom
02-28-2001, 02:27 PM
Okay, I wanna know where to look for information regarding getting an image of the desktop using Xlib (in C) or something similar.
Am I making sense? :P
I want to be able to take screenshots with my app. Please point me to somewhere i might find info on this.

Thanks.

Strike
02-28-2001, 02:42 PM
How about the source for KSnapshot (http://freshmeat.net/redir/ksnapshot/5366/url_tgz/ksnapshot-0.2.7.tar.gz)?

Strike
02-28-2001, 02:48 PM
Ah, it seems that that uses the abstractions provided by QT to basically say "grab the root window and put it in a pixmap", and it doesn't really do it directly through X. Hmm... I guess you'll have to search a bit further and deeper.