Control Codes
Page 118 100-88002 Rev B
Horizontal Color Graphics
The Epic 880
TM
Printer supports monochrome and color graphics sent as horizontal
scan lines. Individual scan lines of graphic data are sent to the printer one line at a
time. The Epic 880
TM
Printer supports only two color printing, however, the horizontal
graphic command interface gives full color support for printer graphics. Full color
support is provided to establish a full color standard for future printers. Color data is
sent in one of three color planes. Typically, a red plane or scan line is sent, then
green and blue. The sequence of lines defines one row of dots that is printed on the
paper.
The horizontal graphic commands do not include resolution information. Therefore,
atleast once before sending graphics data, set the graphics resolution by sending the
[ESC] * command with a zero length (no data). The graphic resolution sets the
internal graphic mode of the printer. The printer stays in graphic mode until it is
changed by another command. Note that the bar code generation and other graphic
commands change graphics mode. The format of the horizontal graphic command
follows.
[ESC] h Process horizontal graphics data
ASCII [ESC] h <color> <length> <format> <data>
Hexadecimal 1BH 68H
Decimal <27> <104>
IPCL None
EPOS None
Description The [ESC] h <color> <length> <format> <data> command processes
horizontal graphic data, where <color> is a byte that specifies the color of the data
being sent.
<color> = 0 Use Previously Selected Color
1 Red
2 Green
4 Blue
<length> = byte specifying the length of the data including the format byte, ranging
from 0 to 254 (255 is reserved for future use.)
<format> = byte specifying the format of the graphics data.
0 for raw data
1 for bit wise RLE compression
8 for byte wise RLE compression
254 for difference compression
255 for same as previous scan line data
<data> = the data bytes that define the graphics to be printed.