Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
[SOLVED] Screen Capture Issue
Print
Pages: [
1
]
Author
Topic: [SOLVED] Screen Capture Issue (Read 3749 times)
0 Members and 1 Guest are viewing this topic.
33pwnt33
Newbie
Posts: 7
[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
»
Logged
FRex
Hero Member
Posts: 1848
Back to C++ gamedev with SFML in May 2023
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.
Logged
Back to C++ gamedev with SFML in May 2023
33pwnt33
Newbie
Posts: 7
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!
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
[SOLVED] Screen Capture Issue
anything