rgrit 0.1.1

A Rust interface to grit - the GBA Image Transmogrifier with batteries included!
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use rgrit::GfxFormat;

fn main() {
    let bitmap = rgrit::BitmapBuilder::new("assets/test.png")
        .with_transparency(rgrit::Transparency::Disabled)
        .with_bit_depth_override(rgrit::BitDepth::Custom(16))
        .with_format(GfxFormat::Bitmap)
        .build()
        .unwrap();

    std::fs::write("test.bin", bitmap.gfx).unwrap();
}