/// load a bitmap from disk (`path` must include the extension).

load a bitmap from disk (`path` must include the extension).
load a bitmap from disk ( ` path ` must include the extension ) .
pub fn load_bitmap(path: &str) -> (Vec<u8>, usize, usize) {
            use image::GenericImageView;
            let img = image::open(&std::path::Path::new(path))
                .expect(&format!("unable to load texture from path {}", path));
            let width = img.width() as usize;
            let height = img.height() as usize;
            let data = img.into_bytes();
            (data, width, height)
        }
pub fn load_bitmap ( path : & str ) -> ( Vec < u8 > , usize , usize ) { use image :: GenericImageView ; let img = image :: open ( & std :: path :: Path :: new ( path ) ) . expect ( & format ! ( " " path ) ) ; let width = img . width ( ) as usize ; let height = img . height ( ) as usize ; let data = img . into_bytes ( ) ; ( data , width , height ) }
load a bitmap from disk (`path` must include the extension).
load a bitmap from disk ( ` path ` must include the extension ) .
path
&str