bumpy 0.0.5

A library for reading and manipulating bitmap (.bmp) files.
Documentation
  • Coverage
  • 46.3%
    25 out of 54 items documented10 out of 27 items with examples
  • Size
  • Source code size: 8.43 MB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.12 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • jamesonkunkel

Work-in-progress Rust library for reading and manipulating bitmap (.bmp) files. Documentation here.

Usage

Add this to your Cargo.toml:

[dependencies]
bumpy = "0.0.5"

Features

Currently supports reading 24-bit and 8-bit .bmp files into a mutable struct, performing manipulations on the image such as greyscaling, rotation, or mirroring the image, and then writing the struct to a bitmap file. Also support generating a 24 bit bitmap file of given width and height.

Example

extern crate bumpy;

use bumpy::bmp::Bmp;

//open a file
let mut file = File::open("sample.bmp")?;

//build a Bmp struct from the file
let bmp = Bmp::build_from_file(&mut file)?;

//do stuff like greyscale it
bmp.greyscale();

//write the modified bmp to a new file
bmp2.write_to_file("test")?;