MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ load() [2/2]

std::optional< ImageData > MayaFlux::IO::ImageReader::load ( const std::string &  path,
int  desired_channels = 4 
)
static

Load image from file (static utility)

Parameters
pathImage file path
desired_channelsForce channel count (0 = keep original, 4 = RGBA)
Returns
Image data or nullopt on failure

Definition at line 309 of file ImageReader.cpp.

310{
311 return load(std::filesystem::path(path), desired_channels);
312}
static std::optional< ImageData > load(const std::string &path, int desired_channels=4)
Load image from file (static utility)

References load().

Referenced by load(), load_texture(), and open().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: