SFML community forums

Help => Graphics => Topic started by: 33pwnt33 on May 04, 2013, 07:50:40 pm

Title: [SOLVED] Screen Capture Issue
Post by: 33pwnt33 on May 04, 2013, 07:50:40 pm
Okay I know with sfml you can screen capture:
sf::RenderWindow Screen;
Screen.capture();
What I don't know is how to capture the whole entire screen and not just the application and how to save the screen capture to a file.
Title: Re: Screen Capture Issue
Post by: FRex on May 04, 2013, 08:08:11 pm
sf::RenderWindow Screen;
Screen.capture().saveToFile("hehe.png");
Capture returns Image so you can do that. The extension is guessed from filename.
But you can't capture entire screen contents with SFML, just RenderWindow contents.
Title: Re: Screen Capture Issue
Post by: 33pwnt33 on May 04, 2013, 08:33:54 pm
Thanks soooooo much for the reply, I will use that method!