Function bmp::open
[-] [+]
[src]
pub fn open(name: &str) -> BmpResult<Image>
Returns a BmpResult
, either containing an Image
or a BmpError
.
Example
extern crate bmp; let img = bmp::open("test/rgbw.bmp").unwrap_or_else(|e| { panic!("Failed to open: {}", e); });