|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API bool MayaFlux::save_image | ( | const std::shared_ptr< Buffers::TextureBuffer > & | buffer, |
| const std::string & | suggested_name = "output.png" |
||
| ) |
Present a native save-file dialog filtered to image formats and save buffer to the chosen path via IOManager::save_image().
Blocks until the user confirms or cancels. The encode task is queued asynchronously. Returns false on cancellation, backend error, or if Portal::System is not initialized.
| buffer | Source TextureBuffer to encode. |
| suggested_name | Filename pre-filled in the dialog name field. |
Definition at line 207 of file Depot.cpp.
References MayaFlux::Journal::API, get_io_manager(), MF_ERROR, and MayaFlux::Journal::Runtime.
Here is the call graph for this function: