@mbtech-nl/bitmap / LabelBitmap
Interface: LabelBitmap
Defined in: types.ts:10
A 1-bit-per-pixel bitmap. Row-major, MSB-first within each byte.
Memory layout: Row y, pixel x -> byte index: y * bytesPerRow + Math.floor(x / 8) -> bit index: 7 - (x % 8) (MSB = leftmost pixel)
A set bit (1) = black dot. A clear bit (0) = white dot.
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
data | readonly | Uint8Array | types.ts:13 |
heightPx | readonly | number | types.ts:12 |
widthPx | readonly | number | types.ts:11 |