Skip to content

saschaklick/bitmap_writer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Rust crate to convert bitmap pixel data to ASCII or Unicode.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages