bitmap_writer

Crates.iobitmap_writer
lib.rsbitmap_writer
version0.1.2
created_at2025-05-30 20:03:35.026957+00
updated_at2025-11-04 23:52:26.249772+00
descriptionWrite a 1-bit/monocolor bitmap from a buffer to a buffer or terminal
homepagehttps://github.com/saschaklick/bitmap_writer
repositoryhttps://github.com/saschaklick/bitmap_writer
max_upload_size
id1695625
size47,780
(saschaklick)

documentation

README

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.

Commit count: 5

cargo fmt