table of contents
LIBANSILOVE(3) | Library Functions Manual | LIBANSILOVE(3) |
NAME¶
libansilove
—
Library for converting ANSI, ASCII, and other formats to
PNG
DESCRIPTION¶
libansilove
is a library to convert ANSi
and artscene related file formats into PNG images, supporting ANSI (.ANS),
PCBoard (.PCB), Binary (.BIN), Artworx (.ADF), iCE Draw (.IDF), Tundra
(.TND) and XBin (.XB) formats.
It creates size optimized 4-bit PNG files and supports 80x25 and 80x50 PC fonts (including all the 14 MS-DOS charsets), Amiga fonts, and iCE colors.
All library functions take a context, defined as an ansilove_ctx structure in include/ansilove.h:
struct ansilove_ctx { uint8_t *buffer; size_t maplen; size_t length; struct ansilove_png png; uint8_t error; };
Options are passed to the different loaders using the ansilove_options structure in include/ansilove.h:
struct ansilove_options { bool diz; bool dos; bool icecolors; bool truecolor; int16_t columns; uint8_t font; uint8_t bits; uint8_t mode; uint8_t scale_factor; };
AUTHORS¶
libansilove
was written by
Stefan Vogt, Brian Cassidy,
and Frederic Cambus.
May 6, 2023 | Linux 6.4.0-150600.23.25-default |