#terminal-graphics #bitmap #terminal #graphics #image

no-std bitmap_writer

Write a 1-bit/monocolor bitmap from a buffer to a buffer or terminal

3 releases

Uses new Rust 2024

0.1.2 Nov 4, 2025
0.1.1 Sep 27, 2025
0.1.0 May 30, 2025

#293 in Visualization

MIT license

21KB
213 lines

bitmap_writer

A utility library to convert monochrome bitmaps to textual representation.

Usage

To use bitmap_writer, first add this to your Cargo.toml:

[dependencies]
bitmap_writer = "0.1.1"

Next, add this to your crate:

use bitmap_writer::{Writer, Bitmap, Frame, Style};

no_std support

bitmap_writer will work in a no_std environment, but will be missing support for direct .print(...), instead requiring to use a writable buffer or stream with the Write trait, either std::io::Write or core::fmt::Write.

Styles

Different sets of characters - either ASCII or Unicode - can be used to convert the bitmap pixels to characters.

See bitmap_writer::Style for more details.

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in bitmap_writer by you, shall be licensed as MIT, without any additional terms or conditions.

Dependencies

~0–13MB
~115K SLoC