ExponentialWorks Website
Basic use
PixMap is a bitmap editor that allows you to export 1bit images in different formats. Bitmaps images are mainly use when programming user interfaces for LCD.
Export formats supported: XBM, PixFont
Import formats supported: XBM, XBMP, SVG, PNG, BMP, JPEG, PixFont
Import XBM
To import an XBM, paste the C source declaration of the variable in the output panel and click on the import button.
The source must have the following format:
- The name must end with the dimensions (width and height). For example:
const uint8_t icon_doc_16x10[] PROGMEM = { ... };.
- The values must be in hexadecimal format.
Pix Font
A Pix Font is a proportional 1bit monochrome pixel font for LCD and the Arduino UIKIT library. A PixFont only supports ascii and extended ascii characters, that is from character 1 (0x01) to 255 (0xFF).
Use the font icon to create a new font. Enter the standard width and height of the font. Enter the first character in the font and the last. The baseline is the hight of a character relative to the height. The space under the baseline is used for descent portions of a character like in the case of the "p", "j" etc.
Pix Font Format
The first 6 bytes is the header. Followed by the pixel data for each glyph in the font.
A glyph starts with one byte indicating its actual width. It followed with a number of bytes for the pixel data. The actual pixel data is stored using the same format as XBM.
const uint8_t ui_icn_file_16x16[] PROGMEM = {
0xfc,0x03,0x04,0x06,0x04,0x0a,0x04,0x1e,0x04,0x10,0x04,0x10,
0x04,0x10,0x04,0x10,0x04,0x10,0x04,0x10,0x04,0x10,0x04,0x10,
0x04,0x10,0x04,0x10,0xfc,0x1f,0x00,0x00};