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

Method saveImageDialog

samples/ImageFileBasic/src/ImageFileBasicApp.cpp:66–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void ImageFileBasicApp::saveImageDialog()
67{
68 try {
69 fs::path path = getSaveFilePath( "", ImageIo::getWriteExtensions() );
70 if( ! path.empty() )
71 writeImage( writeFile( path ), mTexture->createSource() );
72 }
73 catch( Exception &exc ) {
74 CI_LOG_EXCEPTION( "failed to save image.", exc );
75 }
76}
77
78void ImageFileBasicApp::fileDrop( FileDropEvent event )
79{

Callers

nothing calls this directly

Calls 5

getSaveFilePathFunction · 0.85
writeImageFunction · 0.85
writeFileFunction · 0.85
emptyMethod · 0.45
createSourceMethod · 0.45

Tested by

no test coverage detected