Crate bmp_monochrome
source ·Expand description
BMP monochrome
This library encode and decode monochromatic bitmap with no extra dependencies. Especially useful to encode QR-codes
Structs
- The
Bmp
struct contains the data as a vector of vectors of booleans. Each boolean represent a pixel. Inrows
the first element is the upper row, inside the first vector there are the pixel from left to right, thusrows[0][0]
is the upper-left element. Max len of the vetors (both rows and colums) is u16::MAX` Note in the serialized format the first element is the lower-left pixel see BMP file format - The struct returned from the [
Bmp::print()
] method which implements Display
Enums
- Internal error struct