MCPcopy Create free account
hub / github.com/cinder/Cinder / saveScreenshot

Method saveScreenshot

samples/D3d11ImageBasic/src/D3d11ImageBasicApp.cpp:303–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303void D3d11ImageBasicApp::saveScreenshot()
304{
305 fs::path savePath = getSaveFilePath();
306 if( ! savePath.empty() ) {
307 try {
308 writeImage( savePath, copyWindowSurface() );
309 }
310 catch( const std::exception& e ) {
311 console() << "Failed to save screenshot: " << e.what() << std::endl;
312 }
313 }
314}
315
316void D3d11ImageBasicApp::createTextureFromSurface( const Surface8u &surface )
317{

Callers

nothing calls this directly

Calls 5

getSaveFilePathFunction · 0.85
writeImageFunction · 0.85
copyWindowSurfaceFunction · 0.85
emptyMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected