Member: spacechase0

This is the member page of spacechase0spacechase0

Table of Contents

About Me

Uh…

Scratchpad

//Includes, put at top.
#include <string>
#include <sstream>
 
//Main variables, put somewhere outside of a function above when it is first used.
long num_of_scr = 0;
string scr_name = "screenshot0.jpg";
 
//The code using SFML, just paste it where you want to take a screenshot.
sf::Image Screen = App.Capture();
Screen.SaveToFile(scr_name);
num_of_scr += 1;
std::stringstream textStream;
textStream << "screenshot" << num_of_scr << ".jpg";
scr_name = textStream.str();
page_revision: 8, last_edited: 1265900068|%e %b %Y, %H:%M %Z (%O ago)