A basic bmp library implemented in pure python, for study purpose only.
from libbmp import BMPFile
from libbmp import load_bmp
bmp: "BMPFile" = load_bmp("./test_bmps/test.bmp")
print("BMP size:", bmp.size)
print("BMP first pixel:", bmp[0][0])
bmp.save_bmp("./test_bmps/test_svae.bmp")
- 16 bit color data
- Pseudo color support