MCPcopy Create free account
hub / github.com/EasyRPG/Player / TakeScreenshot

Method TakeScreenshot

src/output.cpp:200–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200bool Output::TakeScreenshot(bool is_auto_screenshot) {
201#ifdef EMSCRIPTEN
202 Emscripten_Interface::TakeScreenshot(is_auto_screenshot);
203 return true;
204#else
205 auto fs = FileFinder::Save();
206 auto p = GetNextScreenshotFileName(fs, is_auto_screenshot);
207 return TakeScreenshot(p);
208#endif
209}
210
211bool Output::TakeScreenshot(std::string_view file) {
212 auto ret = FileFinder::Save().OpenOutputStream(file, std::ios_base::binary | std::ios_base::out | std::ios_base::trunc);

Callers

nothing calls this directly

Calls 7

OpenOutputStreamMethod · 0.80
ZoomOpacityBlitMethod · 0.80
GetRectMethod · 0.80
WritePNGMethod · 0.80
GetMethod · 0.45
GetWidthMethod · 0.45
GetHeightMethod · 0.45

Tested by

no test coverage detected