Archived

This topic is now archived and is closed to further replies.

obj63

Screen shot

Recommended Posts

I wasn''t sure which forum to put this in but I have made a game with SDL and C++ and I want to know how you would take a screen shot when it is running so I can post pictures of the game on my website.

Share this post


Link to post
Share on other sites
I couldn''t get the print screen to work, and I couldn''t find the SDL_SaveBMP in the sdl files, any chance you can find out what the command is Seby,

By the way, Nice site for your game Seby I am going to try your game now, looks pretty good.

Share this post


Link to post
Share on other sites
quote:
Original post by obj63
I couldn't get the print screen to work, and I couldn't find the SDL_SaveBMP in the sdl files, any chance you can find out what the command is Seby,

By the way, Nice site for your game Seby I am going to try your game now, looks pretty good.


http://sdldoc.csn.ul.ie/sdlsavebmp.php

He was right it is SDL_SaveBMP()
I haven't tried it but after seeing this post I might implement it into my project hehe





Please visit Turt99 Productions

[edited by - Turt99 on July 3, 2003 11:18:02 AM]

Share this post


Link to post
Share on other sites
It is under the video stuff. Here it is:

SDL_SaveBMP
Name
SDL_SaveBMP -- Save an SDL_Surface as a Windows BMP file.
Synopsis

#include "SDL.h"
int SDL_SaveBMP(SDL_Surface *surface, const char *file);


Description
Saves the SDL_Surface surface as a Windows BMP file named file.

Return Value
Returns 0 if successful or -1 if there was an error




First make it work,
then make it fast.

--Brian Kernighan

"I’m happy to share what I can, because I’m in it for the love of programming. The Ferraris are just gravy, honest!" --John Carmack: Forward to Graphics Programming Black Book

Share this post


Link to post
Share on other sites