how to snapshot a desktop screen |
how to snapshot a desktop screen |
David Olofson
Guest
|
On Monday 09 January 2006 12:06, bruno wrote:
I've seen a few code examples for Windows (the magnifier that comes with Delphi, for example), and there are quite a few X (Linux, *BSD etc) screensavers and utilities that do it. (KSnapshot, the GIMP "Acquire Screenshot" feature, all those lens effects and similar screensavers...) However, it's platform specific stuff, and I don't think SDL will be of much help as far as the actual snapshotting part is concerned. Try searching for "root window" and "HWND 0", maybe. (I don't remember the exact APIs to use; long time since...) Most windowing systems handle the whole desktop like some sort of full screen "window", and that's the one you want. //David Olofson - Programmer, Composer, Open Source Advocate .------- http://olofson.net - Games, SDL examples -------. | http://zeespace.net - 2.5D rendering engine | | http://audiality.org - Music/audio engine | | http://eel.olofson.net - Real time scripting | '-- http://www.reologica.se - Rheology instrumentation --' |
|||||||||||||
|
how to snapshot a desktop screen |
Jeff
Guest
|
On Monday 09 January 2006 03:06 am, bruno wrote:
select the portion of the screen to save to "filename". HTH, Jeff |
|||||||||||||
|