Archived

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

Screen shot

This topic is 5312 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Not the most flexible way to do it put you can just hit printscreen. Then open up an art package and paste it into your document.

Share this post


Link to post
Share on other sites
There's a SDL_SaveBmp(...) function, or something like that. I used that in my game in order to make screenshots.

- Seby -
www.dfhi-bomber.fr.st

[edited by - theSeby on July 3, 2003 10:37:58 AM]

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
quote:
Original post by obj63
I couldn''t get the print screen to work.


Its ctrl & print screen, then you can just open up paint (if you have windows) and click edit then paste.

Share this post


Link to post
Share on other sites