Repository navigation
Commit a4c159c
committed
fix(parser): render ^GFA zero-bits as transparent, not opaque white
0-bits used to be rendered as rgba(255,255,255,255) and obscured
underlying objects. ZPL defines 0-bits as not-printed; in the canvas
preview that maps to transparent so layered fields stay visible.
createImageData starts zero-filled (rgba(0,0,0,0)), which already is
the 0-bit case — only the 1-bit pixels need an alpha write.1 parent 9bbe10b commit a4c159c
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1158 | 1158 | | |
1159 | 1159 | | |
1160 | 1160 | | |
1161 | | - | |
1162 | | - | |
1163 | | - | |
1164 | | - | |
1165 | | - | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
1166 | 1167 | | |
1167 | 1168 | | |
1168 | 1169 | | |
| |||
0 commit comments