|
MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
|
| std::shared_ptr< Buffers::TextureBuffer > MayaFlux::IO::IOManager::load_image | ( | const std::string & | filepath | ) |
Load an image file into a TextureBuffer.
Opens the file via ImageReader, decodes to RGBA8, and creates a TextureBuffer containing the pixel data. The reader is retained for the lifetime of IOManager.
| filepath | Path to the image file (PNG, JPG, BMP, TGA, etc.). |
Definition at line 296 of file IOManager.cpp.
References MayaFlux::Journal::API, MayaFlux::Journal::FileIO, m_image_readers, MF_ERROR, and MF_INFO.