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