pub fn from_file(path: &str, strict: bool) -> Result<Bitmap, NwgError> {
        let mut bitmap = Bitmap::default();

        Bitmap::builder()
            .source_file(Some(path))
            .strict(strict)
            .build(&mut bitmap)?;

        Ok(bitmap)
    }
/**
        Single line helper function over the bitmap builder api.

        Use a file resource.
    */
Single line helper function over the bitmap builder api.
Use a file resource.
Single line helper function over the bitmap builder api . Use a file resource .
pub fn from_file(path: &str, strict: bool) -> Result<Bitmap, NwgError> {
        let mut bitmap = Bitmap::default();
        Bitmap::builder()
            .source_file(Some(path))
            .strict(strict)
            .build(&mut bitmap)?;
        Ok(bitmap)
    }
pub fn from_file ( path : & str , strict : bool ) -> Result < Bitmap , NwgError > { let mut bitmap = Bitmap :: default ( ) ; Bitmap :: builder ( ) . source_file ( Some ( path ) ) . strict ( strict ) . build ( & mut bitmap ) ? ; Ok ( bitmap ) }
Single line helper function over the bitmap builder api.
Single line helper function over the bitmap builder api .
path
&str
strict
bool