1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-15 04:15:38 +03:00
inav/docs/development/Bitmap Creation.md
ChiggerPepi 4d27be41ff Update display.c
Added "CLEANFLIGHT ARMED" bitmap,.
Changed showTitle to not show default "armed" text when armed.
Added showArmedPage

Update display_ug2864hsweg01.c

Added i2c_OLED_send_bitmap

Update display_ug2864hsweg01.h

Changed armed bitmap version to RLE compressed.  Added bitmap decompression.

Added Bitmap Creation.md and related images

Changed bitmap to show cleanflight font
2016-03-23 22:25:23 +10:00

20 lines
No EOL
895 B
Markdown

# Bitmaps
The bitmapDecompress function in Cleanflight is currently designed to work with RLE compressed monochrome bitmaps.
## Image format
![Armed RLE Bitmap](assets/armed128x32.bmp)
Images supported by this function are required to be 128 pixels wide, with the exception being an image only 8 pixels in height. The image height should be divisible by 8, but not be larger than the display height of 64. The bitmap image should be monochrome, 1-bit.
Example Photoshop new image settings:
![Photoshop](assets/photoshop.jpg)
## Compression and HEX conversion
Your new bitmap file will need to be converted to run-length encoding compressed hexidecimal. The [Gabotronics Image to HEX Converter v1.03](http://www.gabotronics.com/download/resources/bmp-converter.zip) works very nicely for this.
The proper settings are shown in the screenshot below:
![Photoshop](assets/gabotronics.jpg)