| 64 | } |
| 65 | |
| 66 | void 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 | |
| 78 | void ImageFileBasicApp::fileDrop( FileDropEvent event ) |
| 79 | { |
nothing calls this directly
no test coverage detected