Registry / bitmap

bitmap

JSON →
library0.0.7pypypi✓ verified 83d ago

A Python library for handling bitmap (BMP) files and bitmap graphics. Supports reading, writing, and manipulating bitmap images. Current version 0.0.7, released with no clear cadence.

pip install bitmap
INSTALL
IMPORT
SIG · BITMAP
B
bitmap
pythonv0.0.7
Install
1.8s avg
Import
Disk
20MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.0.7 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 21.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.8s · import 0.000s · 22MB
20MB installed
● package 20MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BitMap
from bitmap import BitMap
from bitmap import Bitmap
bitmap
from bitmap import bitmap

Create a simple red bitmap and save to file.

from bitmap import Bitmap # Create a 100x100 red bitmap bm = Bitmap(100, 100) bm.clear((255, 0, 0)) bm.save('red.bmp') print('Saved red.bmp')
Debug
Known issues
gotchaBitmap constructor expects (width, height) but order is (x, y) meaning width then height. Common mistake: swapping arguments.
fix
Always use Bitmap(width, height).
affects: all
gotchaBitmap.clear() with no arguments sets all pixels to black. To set a color, pass an RGB tuple.
fix
Use bm.clear((r,g,b)) to set a color.
affects: all
deprecatedNo official deprecation warnings observed; library is minimal with limited functionality.
fix
Consider using Pillow for advanced bitmap operations.
affects: all
Upgrade
Version history
0.0.7latest on PyPI · released Nov 23, 2019
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
bitmap — pip install bitmap · libregistry