bumpy 0.0.5

A library for reading and manipulating bitmap (.bmp) files.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::fs::File;
use std::io;
use bumpy::bmp::Bmp;

fn main() -> io::Result<()> {

    let mut file = File::open("sample2.bmp")?;
    let mut bmp = Bmp::build_from_file(&mut file)?;

    bmp.rotate_270();
    bmp.print_all(true, true);

    bmp.write_to_file("test")?;

    Ok(())
}