Programming Codes
Ithaca
®
8000
Programmer’s Guide
Page 120
Rev D
100-06908
Graphics Compression
Although the printer compression algorithms are documented, it is recommended that
our Windows‘ printer driver be used to generate a graphic image. Our Windows‘ printer
driver selects the best compression method to use on a scan line by scan line basis.
The print driver can be directed to print to file, creating a .prn file. When creating a .prn
file, it is recommended that the Start/End Doc settings be cleared in the Start/End Doc
tab of the printer properties page. After the .prn file is created, it can be read and sent to
the printer by the host application.
Bit wise RLE.
In bit wise RLE compression, the Most Significant Bit (MSB) compression
of each data byte denotes if the compressed data represents one or zero bits. Bits zero
through six indicate how many bits are represented as a one or zero. A 34 Hex (34H)
represents 34H bits set to zero. A 97H represents 17H bits set to one.
[ESC] h <1> <5> <1> <34H> <97H> <8fH> <09H>
Byte wise RLE.
In byte wise RLE compression, data is represented in byte
Compression pairs. The first byte is a count, and the second is the graphics data. The
graphics data byte is repeated the number of times represented by the count byte.
[ESC] h <1> <5> <8> <09H> <ffH> <02H> <55H>
Where <09H> <ffH> means repeat ffH nine times and <02H> <55H> means repeat 55H
two times.
Difference Compression
. In difference compression, data is represented in byte pairs.
In compression, the first byte is an index into the byte stream, as it would exist if sent in
an uncompressed format. The second byte is the data that is different in the new scan
line data. Think of compression mode as, ―The scan line is the same as the previous
except for the byte at a specific position.‖
[ESC] h <1> <5> <254> <03H> <d5H> <0bH> <51H>
Where <03H> <d5H> means use the previously transmitted scan line data but change
byte 3 to a d5H and change byte 11 (0bH) to a 51H.
Same-as-previous Compression
. In same-as-previous compression, the command
does not contain any graphics data. The command specifies that the printer is to use the
previous scan line data for the current scan line.
[ESC] h <1> <1> <255>.
User Store (Graphic Save)
The Ithaca® 8000 Printer maintains a 16K (16384 bytes) section of flash memory and up
to 192K of extended flash memory to save user information. The information can be
either macros or user-defined characters. These groups of data are indexed by name,
and may be called up at any time after they are stored. See the sections on Macros and
User-defined Characters for definitions of these functions.
To allow the host application to maintain these groups of data, a series of user store
maintenance commands are available. As referenced earlier in this manual, the user can
Summary of Contents for Ithaca 8000
Page 1: ...Ithaca 8000 Programmer s Guide PN 100 06908 Rev D November 2010...
Page 2: ...This page intentionally left blank...
Page 13: ...100 06908 Rev D Page xi...
Page 14: ......
Page 15: ...100 06908 Rev D Page 1 chapter 1 Introducing your Ithaca 8000 Printer...
Page 16: ...Page 2 Rev D 100 06908 This page intentionally left blank...
Page 22: ......
Page 23: ...100 06908 Rev D Page 9 chapter 2 Ithaca 8000 Specifications and Requirements...
Page 24: ...Page 10 Rev D 100 06908 This page intentionally left blank...
Page 42: ...Page 28 Rev D 100 06908 chapter 3 Setup Procedures...
Page 43: ...100 06908 Rev D Page 29 This page intentionally left blank...
Page 51: ...100 06908 Rev D Page 37 chapter 4 How to Operate the Ithaca 8000 Printer...
Page 52: ...Page 38 Rev D 100 06908 This page intentionally left blank...
Page 60: ......
Page 61: ...100 06908 Rev D Page 47 chapter 5 Configuring Your Ithaca 8000 Printer...
Page 62: ...Page 48 Rev D 100 06908 This page intentionally left blank...
Page 68: ......
Page 69: ...100 06908 Rev D Page 55 chapter 6 Programming Codes...
Page 70: ...Page 56 Rev D 100 06908 This page intentionally left blank...
Page 251: ...100 06908 Rev D Page 237 chapter 7 Ithaca 8000 Color Graphics...
Page 252: ...Page 238 Rev D 100 06908 This page intentionally left blank...
Page 267: ...100 06908 Rev D Page 253 chapter 8 Unicode...
Page 268: ...Page 254 Rev D 100 06908 This page intentionally left blank...
Page 272: ......
Page 273: ...100 06908 Rev D Page 259 chapter 9 Ithaca 8000 Extended Printer Control...
Page 274: ...Page 260 Rev D 100 06908 This page intentionally left blank...
Page 280: ......
Page 281: ...100 06908 Rev D Page 267 chapter 10 Communications...
Page 282: ...Page 268 Rev D 100 06908 This page intentionally left blank...
Page 306: ......
Page 310: ......
Page 312: ......