Image::TextMode::Format::XBin - read and write XBin files
XBin stands for "eXtended BIN" -- an extention to the normal raw-image BIN files.
XBin features:
allows for binary images up to 65536 columns wide, and 65536 lines high
can have an alternate set of palette colors either in blink or in non-blink mode
can have different textmode fonts from 1 to 32 scanlines high, consisting of either 256 or 512 different characters
can be compressed
XBin file stucture:
+------------+ | Header | +------------+ | Palette | +------------+ | Font | +------------+ | Image Data | +------------+
Note, the only required element is a header. See the XBin specs for for information. http://www.acid.org/info/xbin/xbin.htm
header - A header hashref containing an id, width, height, font size and any extra flags
Creates a XBin instance.
Retrieves palette status from the flag byte in the header.
Retrieves font status from the flag byte in the header.
Retrieves compressed status from the flag byte in the header.
Retrieves non-blink status from the flag byte in the header.
Retrieves 512 character font status from the flag byte in the header.
Returns 'xb', 'xbin'.
Brian Cassidy <bricas@cpan.org>
Copyright 2008-2013 by Brian Cassidy
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Image::TextMode, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Image::TextMode
CPAN shell
perl -MCPAN -e shell install Image::TextMode
For more information on module installation, please visit the detailed CPAN module installation guide.