SFML community forums

Help => Window => Topic started by: F2CPP on June 09, 2014, 03:27:39 pm

Title: 'Print' window to file?
Post by: F2CPP on June 09, 2014, 03:27:39 pm
Is it possible in SFML to print the current window to a file format that can be converted to a picture e.g. png?

E.g.
...
window.clear();
window.draw(...);
window.print(...); // place holder for any implementation
window.display()
...

Thanks
Title: Re: 'Print' window to file?
Post by: binary1248 on June 09, 2014, 04:02:16 pm
The documentation is a wondrous thing. (http://sfml-dev.org/documentation/2.1/classsf_1_1RenderWindow.php#a9bd8655d0bac83145bfc329ea7a6d538)