Description of parameters:
c = 0 | Normal mode (not compressed) | ||||
c = 1 | Data Length Encoding (DLE, compressed) | ||||
v |
| Vertical resolution in dpi: 360, 180 dpi | |||
h |
| Horizontal resolution in dpi: 360, 180 dpi | |||
m |
| Vertical dot count (rows of dot graphics) | |||
nL, nH | Horizontal dot count (columns of dot graphics) | ||||
Calculating algorithm: | |||||
n | = INT | (horizontal dot count) | |||
H |
| 256 |
|
| |
n = MOD | (horizontal dot count) |
| |||
L |
| 256 |
|
| |
x Total number of data bytes
(nH x 256) + nL + 7
x = m x INT
8
dDuring normal mode (c=0)
Graphics data d1 ... dx
dDuring DLE (c=1)
The first data byte is treated as a counter. Graphics data bytes then alternate with a data counter byte:
0 ≤ (counter byte) ≤ 127