Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [SOLVED] Screen Capture Issue  (Read 3172 times)

0 Members and 1 Guest are viewing this topic.

33pwnt33

  • Newbie
  • *
  • Posts: 7
    • View Profile
[SOLVED] Screen Capture Issue
« 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.
« Last Edit: May 04, 2013, 08:34:38 pm by 33pwnt33 »

FRex

  • Hero Member
  • *****
  • Posts: 1845
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Screen Capture Issue
« Reply #1 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.
Back to C++ gamedev with SFML in May 2023

33pwnt33

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Screen Capture Issue
« Reply #2 on: May 04, 2013, 08:33:54 pm »
Thanks soooooo much for the reply, I will use that method!