Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 392 Bytes

Readme.md

File metadata and controls

20 lines (14 loc) · 392 Bytes

libbmp-python

A basic bmp library implemented in pure python, for study purpose only.

how to use

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")

TODO

  • 16 bit color data
  • Pseudo color support