|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| bool MayaFlux::IO::save_image | ( | const std::shared_ptr< Core::VKImage > & | image, |
| const std::string & | filepath, | ||
| const ImageWriteOptions & | options = {} |
||
| ) |
Save a VKImage directly to disk via the ImageWriter registry.
Combines download_image() with ImageWriterRegistry::create_writer(). The file extension selects the writer. Format-variant compatibility is the writer's responsibility: saving a float VKImage as PNG will fail at the writer (uint8 mismatch), saving a uint8 VKImage as EXR will fail too.
| image | VKImage to save. |
| filepath | Destination path with extension. |
| options | Format-specific writer options. |
Definition at line 148 of file ImageExport.cpp.
References MayaFlux::IO::ImageWriterRegistry::create_writer(), download_image(), MayaFlux::Journal::FileIO, image, MayaFlux::IO::ImageWriterRegistry::instance(), MayaFlux::Journal::IO, and MF_ERROR.
Referenced by save_texture_buffer().
Here is the call graph for this function:
Here is the caller graph for this function: