Ithaca PcOS Series 80PLUS Programmer's Manual page 78

Ithaca pcos series 80plus pos thermal printer
Table of Contents

Advertisement

Epson Commands
Command Descriptions
A representation of the format of a downloaded bit-image is depicted below:
PRINT #1, CHR$(29),CHR$(45),
PRINT #1, "MY IMAGE",CHR$(0);
PRINT #1, CHR$(1),CHR$(1);
PRINT #1, CHR$(255),CHR$(255),CHR$(255),CHR$(255); REM Send 8 bytes of image
PRINT #1, CHR$(255),CHR$(255),CHR$(255),CHR$(255) REM data
Function
ASCII
Hexadecimal
Decimal
Range
Description
Page 68
PcOS Series 80PLUS
The following basic example demonstrates how to define an 8 bit x 8 bit
block with the name "MY IMAGE":
Column one
d1
dy
...
...
....
+1
d2
dy
+2
....
....
....
....
....
dy
Define user-defined bit image from a PCX file
GS
.
1DH
2EH
<29>
<46>
<name> = a 15-byte maximum length name to identify the image.
GS . defines a bit-image for storage in the nonvolatile memory pool. (See
GS - command for more information). The source of the bit-image is a
PCX file. GS . will accept PCX file versions 2.5, 2.8, and 3.0. If the PCX
file contains an extended palette structure, this command will be aborted;
any PCX file defined with more than 16 usable colors uses an extended
palette structure. All colors within a standard palette will be converted to
either black or white when the bit-image is stored using a "best match"
algorithm. The definition of the <name> parameter and the description of
operation are identical to the GS - command.
Rev B 4/13/99
Programmer's Guide
MSB
→
....
LSB
×
×
⇐ d(x
y
8)
REM Enter the GS - command
REM Define the image name
REM Image size (8 x 8 bits)
<name> 0 <PCX graphics file>
<name> 0 <PCX graphics file>
<name> 0 <PCX graphics file>
dn
[E]

Advertisement

Table of Contents
loading

Table of Contents