A basic bmp library implemented in pure python, for study purpose only.
fromlibbmpimportBMPFilefromlibbmpimportload_bmpbmp: "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