Function CE::Assets::Images::decode(const std::filesystem::path&)

Function Documentation

Decoded CE::Assets::Images::decode(const std::filesystem::path &file)

Declaration: [[nodiscard]]

Decode a file into owned RGBA8 pixels without uploading or publishing a cache entry.

Parameters:

file – Path opened during this call; relative paths use the working directory.

Throws:

CE::Exceptions::runtime_exception – If the file cannot be decoded. Allocation/storage-limit failures propagate; the input path is not retained.

Returns:

Top-to-bottom rows whose byte count matches the returned dimensions.