NAUT324C-256K
- Technical reference - Rev. B
Page 40
16.3.20. Graphics
Data – Compressed
[Designation] Graphics data - compressed
[Format] ASCII
<ESC> g
n {graphics data}
[Description] Graphics data is processed in accordance with the type of compression set with
<ESC> m .
0 :
Unencoded
n : = graphics length in bytes,
g1 ...gn = graphics bytes to print
In text mode, starting from left to right, dot 0 is the MSB in the first byte, while the dot furthest to the right
is the LSB in the nth byte. A 1 in a particular bit position represents a black dot in the line. After the nth
byte, the printer automatically returns to the character mode. During these n bytes, the printer ignores all
other commands.
1 :
run length encoded
n : = number of bytes following
Run length interprets graphics information in byte pairs. Each first byte is the repetition count byte for the
respective second byte. A 0 in the repetition byte count means that the following graphics will be printed
once and not repeated. The repetition byte count has a value range of 0 - 255 which translates into a
print factor of 1 to 256. The second byte contains graphics information that is to be printed. In text mode
from left to right, the dot that is furthest to the right is the LSBit. A 1 in a particular bit position represents
a black dot in the line. After completing the line, the printer automatically returns to the character mode.
2 :
TIFF (4.0) encoded
n : = length of the following bytes
TIFF interprets graphics information as TIFF "pack bits"
TIFF combines features of unencoded and run length encoding.
The graphics information is preceded by a control byte.
The control byte determines (prefix bit), whether the following byte is a graphics byte that is to be
repeated (up to 127 times), or if a number of bytes follows (up to 127), that has to be printed as bit map.
A positive control byte results in bit map information, while a negative control byte (double compliment) is
followed by a repeat byte.
3 :
reserved
16.3.21. Initialize Printer Buffer
[Designation] Initialize printer buffer
[Format] ASCII
ESC A
Hex 1B 41
Decimal 27 65
[Description] When the printer controller receives this command, the printer buffer will be
emptied.