The following
Escape Sequence: | ESC | V | SOH NUL | 72 bytes of data | |
Hexadecimal: | 1B | 56 | 01 | 00 | 72 bytes of data |
Decimal: | 27 | 86 | 1 | 0 | 72 bytes of data |
8 Bit Compressed Graphics | ESC v height width counter data [c data] [c data] … |
This command differs from the 8 Bit Graphics command described above by reducing the number of bits (bytes) that have to be sent to the printer. This allows for faster data transfer between the host computer and the printer.
Graphic String Component
height (# of lines)
width
(# of bytes in each line)
counter
r (# of lines)
Function
An eight bit value representing the number of
An eight bit value representing the number of bytes to be contained in each
An eight bit value which describes how the following data will be processed
For Signed | {127 ≥ Counter ≥ 0} Process the next (Counter + 1) bytes of data as 8 bit |
Values | graphics. |
| {0 > Counter ≥ |
For Unsigned | {127 ≥ Counter ≥ 0} Process the next (Counter+1) bytes of data as 8 bit graphics |
Values | {128 ≥ Counter ≤ 255} Repeat the next Singe byte of data, (( 256 – Counter)+1) |
| times |
Example: Compressed graphic
The following graphics data is to be printed:
25