SOFTWARE MANUAL C32
12.6.3 GEBE GRAPHICS DATA COMPRESSED
[Name]
Graphics data – compressed
[Format]
ASCII <ESC> “g“ n {graphics data}
[Description] The graphics data are processed according to the kind of compression set to <ESC> “m“.
0 :
Unencoded
n: = graphics length in byte, g1 ...gn = graphics bytes to be printed
In text mode, starting from left to right, the dot 0 is the MSB in the first byte. The dot furthest to the
right is the LSB in the nth byte. A 1 in the respective bit position means a black dot on the line. The
printer automatically returns to the character mode after the nth byte. During these n bytes the
printer ignores all commands.
[Example]
(for a printer mechanism with a paper width of 80 mm = 640 dots).
Printing a dotted line: <ESC>m<0d> (necessary only once)
<ESC>g<80d><176d><176d>……….<176> (sending the Byte <176d>)
1 :
Run length Encoded
n : = Number of following bytes
Run length interprets graphics information in pairs of bytes. Each first byte is the Repetition Count
Byte for each second byte. A 0 in the Repetition Count Byte means, the following graphics byte will
be printed once and not repeated. A 1 means, the graphics byte will be printed twice. The Repetition
Count Byte has a range of values from 0 to 255, i.e. a printing parameter of 1 to 256. The second
byte contains the graphics information to be printed. In text mode from left to right the dot furthest
to the right is the LSbit. A 1 in the respective bit position means a black dot on the line. After
terminating the line the printer automatically returns to character mode.
[Example]
(for a printer mechanism with a paper width of 80 mm = 640 dots)
Printing a dotted line: <ESC>m<1d> (necessary only once) <ESC>g<2d><79d><170d>
2
: TIFF (4.0) Encoded
n : = Length of the following bytes
TIFF interprets graphics information as TIFF "packbits". It combines features of Unencoded and Run
length Encoding. The graphics information is preceded by a control byte. The control byte indicates
(prefix byte), whether the following byte is a graphics byte, which ought to be repeated (up to 127
times), or whether a number of bytes follow (up to 127), that ought to be printed as bitmap. A
positive control byte requires bitmap information, a negative control byte (two's complement)
requires a repeat byte.
[Example]
(for a printer mechanism with a paper width of 80 mm = 640 dots)
Printing a dotted line: <ESC>m<2d> (necessary only once) <ESC>g<2d><176d><170d>
GeBE Elektronik und
phone
+49.89.894141-0
GeBE-document-no. SoMAN-C32-E-V2.2-0793
Feinwerktechnik GmbH
fax
+49.89.894141-33
date
July 7, 2020
Beethovenstraße 15
page 100 | 166
82110 Germering
Our general terms of business are to be applied.
Germany
Internet
www.gebe.net
Errors and changes reserved.