diff --git a/.gitignore b/.gitignore index 47b5aa9..55d94da 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /target -*.lock \ No newline at end of file +*.lock +bmp/out.bmp diff --git a/Cargo.toml b/Cargo.toml index b3c6b13..872e07e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [workspace] resolver = "2" -members = ["bent", "bingus", "bong"] +members = ["bent", "bent-funny-zone", "bingus", "bong"] package.edition = "2021" package.license = "Unlicense" package.description = "databending made easy" diff --git a/bent-funny-zone/Cargo.toml b/bent-funny-zone/Cargo.toml new file mode 100644 index 0000000..5ee5e55 --- /dev/null +++ b/bent-funny-zone/Cargo.toml @@ -0,0 +1,16 @@ +[package] +name = "bent-funny-zone" +version = "0.1.0" +edition.workspace = true +license.workspace = true +description.workspace = true +authors.workspace = true +repository.workspace = true +keywords.workspace = true + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +anyhow = "1.0.86" +bmp = "0.5.0" +synfx-dsp = "0.5.6" diff --git a/bent-funny-zone/src/main.rs b/bent-funny-zone/src/main.rs new file mode 100644 index 0000000..f9f956a --- /dev/null +++ b/bent-funny-zone/src/main.rs @@ -0,0 +1,10 @@ +use std::fs::File; + +use anyhow::Result; +use bmp::open; + +fn main() -> Result<()> { + let bmp = open("bmp/sample_640×426.bmp")?; + bmp.to_writer(&mut File::create("bmp/out.bmp")?)?; + Ok(()) +} diff --git a/bmp/sample_640×426.bmp b/bmp/sample_640×426.bmp new file mode 100644 index 0000000..ea88c92 Binary files /dev/null and b/bmp/sample_640×426.bmp differ