chromium/third_party/rust/chromium_crates_io/vendor/qr_code-2.0.0/examples/encode_bmp.rs

#[cfg(feature = "bmp")]
fn main() {
    let qr_code = qr_code::QrCode::new(b"Hello").unwrap();
    let bmp = qr_code.to_bmp();
    bmp.write(std::fs::File::create("test_data/test.bmp").unwrap())
        .unwrap();
}