[SDL] Making a screenshot
Ken Rogoway
Ken at HomebrewSoftware.com
Tue Apr 10 22:21:48 PDT 2007
It is as simple as calling:
SDL_SaveBMP( pSurface,"FILE.BMP" );
The pSurface is a pointer to a SDL_Surface and the string is the filename to
save it as.
Ken Rogoway
Homebrew Software
http://www.homebrewsoftware.com/
-----Original Message-----
From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of benang at cs.its.ac.id
Sent: Tuesday, April 10, 2007 9:51 PM
To: sdl at lists.libsdl.org
Subject: [SDL] Making a screenshot
Hi, anybody know how to make a screenshot of the current backbuffer
surface? Maybe integrating it with Klipper or making a bitmap file of it?
Thanks alot in advance.
Fare thee well,
Bawenang R. P. P.
----------------
ERROR: Brain not found. Please insert a new brain!
“Do nothing which is of no use.” - Miyamoto Musashi.
"I live for my dream. And my dream is to live my life to the fullest."
_______________________________________________
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 269.0.0/754 - Release Date: 4/9/2007
10:59 PM
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 269.0.0/754 - Release Date: 4/9/2007
10:59 PM
More information about the SDL
mailing list