Crate img2text

Source

Structs§

Bmp2text
The working area for bitmap-to-text conversion.
Bmp2textOpts

Constants§

GLYPH_SET_1X1
GLYPH_SET_1X2
GLYPH_SET_2X2
GLYPH_SET_2X3
GLYPH_SET_BRAILLE8
GLYPH_SET_MS_2X3
GLYPH_SET_SLC

Traits§

GlyphSet
A set of output glyphs (string fragments) that are associated with expected input image patterns.
ImageRead

Functions§

max_output_len_for_image_dims
Calculate the maximum number of bytes possibly outputted by Bmp2text::transform_and_write.
num_glyphs_for_image_width
num_lines_for_image_height
set_spans_by_fn
Fill [Span] using a given function that returns the desired value for each bit.

Type Aliases§

Fragment
A small bitmap image, whose dimensions are specified implciitly (e.g., by GlyphSet::mask_dims).
Span
A set of consecutive pixels of a constant length.