Function rawloader::decode_file [−][src]
pub fn decode_file<P: AsRef<Path>>(path: P) -> Result<RawImage, RawLoaderError>
Expand description
Take a path to a raw file and return a decoded image or an error
Example
ⓘ
let image = match rawloader::decode_file("path/to/your/file.RAW") { Ok(val) => val, Err(e) => ... some appropriate action when the file is unreadable ... };