1
Graphics / Re: Screen capture in C++
« on: April 13, 2020, 12:59:26 pm »
I did it but
there is an error: Failed to create texture, invalid size (0x0) and Failed to save image "screen.png"
there is an error: Failed to create texture, invalid size (0x0) and Failed to save image "screen.png"
sf::RenderWindow window;
sf::Image image;
image = window.capture();
image.saveToFile( "screen.png" );
sf::Image image;
image = window.capture();
image.saveToFile( "screen.png" );