Module: core/xbin
XBin Image Format Support
Summary
Read and display XBin image format files
Inspired by Synchronet’s xbin_lib.js and xbimage_lib.js, this provides:
- Read XBin files (custom font + character data)
- Parse XBin header (width, height, font data, flags)
- Display XBin images (requires font loading)
XBin is an extended BIN format that can include:
- Custom palettes
- Custom fonts
- Compressed data
Table of contents
Classes
Interfaces
Variables
Variables
XBIN_ID
• Const XBIN_ID: "XBIN\u001a"
XBin file signature
Defined in
XBIN_ID_LENGTH
• Const XBIN_ID_LENGTH: 5
Defined in
XBinFlags
• Const XBinFlags: Object
XBin flag constants
Type declaration
| Name | Type |
|---|---|
COMPRESS |
4 |
FONT |
2 |
FONT_512 |
16 |
FONT_BLINK |
8 |
FONT_HIGH |
4 |
FONT_HIGHBLINK |
16 |
FONT_NORMAL |
2 |
NONBLINK |
8 |
NONHIGH |
32 |
PALETTE |
1 |