SDL Screenshot

I seem to remember seeing code somewhere that took a SDL surface, and saved
it as a bitmap. However, I can’t find where it was I saw it at. I believe
that it was Sam’s code, but if anyone know’s where I can get my hands on it,
i’d be a big help.________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

SDL_SaveBMP()?

m.On Mon, Jun 26, 2000 at 01:59:27PM -0400, Uriah Liggett wrote:

I seem to remember seeing code somewhere that took a SDL surface, and saved
it as a bitmap. However, I can’t find where it was I saw it at. I believe
that it was Sam’s code, but if anyone know’s where I can get my hands on it,
i’d be a big help.


Programmer “Ha ha.” “Ha ha.” "What are you laughing at?"
Loki Software "Just the horror of being alive."
http://lokigames.com/~briareos/ - Tony Millionaire

I think that the function is SDL_SaveBMP. Look at the docummentation
for an exact name and use.

Miguel
http://www.arianne.cx

Mensaje citado por: Uriah Liggett <game_dev at hotmail.com>:

I seem to remember seeing code somewhere that took a SDL surface,
and saved

it as a bitmap. However, I can’t find where it was I saw it at. I
believe

that it was Sam’s code, but if anyone know’s where I can get my
hands on> it,
i’d be a big help.


__

Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com

I seem to remember seeing code somewhere that took a SDL surface, and saved
it as a bitmap. However, I can’t find where it was I saw it at. I believe
that it was Sam’s code, but if anyone know’s where I can get my hands on it,
i’d be a big help.

In the documentation (under video) it makes mention of
SDL_SaveBMP(SDL_Surface *surface, const char *file);

at http://www.libsdl.org/docs/video/functions.html#SDL_SaveBMP

I’m sure there’s also something under SDL_image… but haven’t checked.On Mon, 26 Jun 2000, Uriah Liggett wrote:


Sam Hart http://www.physics.arizona.edu/~hart/
Web Page Highlights: Video Game History, Black Hole Simulation, & more.
OTHER WEB SITES MAINTAINED BY SAM HART
http://www.geekcomix.com/ - Geekcomix, the Daily Geek Comic Strip Site
http://www.physics.arizona.edu/~hart/gw/ - Ghostworks (Alt./Linux Computing)