Skip to content

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

Notifications You must be signed in to change notification settings

ice-tong/libbmp-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages