Epson Commands
PcOS Series 80PLUS
Programmer's Guide
Command Descriptions
Page 68
Rev B 4/13/99
The following basic example demonstrates how to define an 8 bit x 8 bit
block with the name “MY IMAGE”:
A representation of the format of a downloaded bit-image is depicted below:
Column one
d1
dy
+1
...
...
....
d2
dy
+2
....
....
....
....
....
....
dy
PRINT #1, CHR$(29),CHR$(45),
REM Enter the GS - command
PRINT #1, ”MY IMAGE”,CHR$(0);
REM Define the image name
PRINT #1, CHR$(1),CHR$(1);
REM Image size (8 x 8 bits)
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
Define user-defined bit image from a PCX file
[E]
ASCII
GS
.
<
name
> 0 <
PCX graphics file
>
Hexadecimal
1DH
2EH
<
name
> 0 <
PCX graphics file
>
Decimal
<29>
<46>
<
name
> 0 <
PCX graphics file
>
Range
<
name
> = a 15-byte maximum length name to identify the image.
Description
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.
⇐
d(x
×
y
×
8)
dn
MSB
LSB
→