2 pcx graphics example, Pcx graphics example – SATO XL400/410 User Manual

Page 211

Advertising
background image

Programming Manual

8. Custom Characters And Graphics

SATO RISC Printers

211

8.2 PCX Graphics Example

A graphics file in a PCX format may also be transmitted to the printer. The
file must not be larger than 32K bytes (DOS file size reported in a DIR
listing). For example, the Lion.PCX image shown below has a file size of
3800 bytes.

The uncompressed size (PCX is a compressed file) of the file must not be
greater than 64K bytes. Generally this is not a problem unless the graphic
image is surrounded by large amount of white space which the PCX algo-
rithm can compress very efficiently. If this is the case, the file should be
recaptured to eliminate the surrounding white space as much as possible.

The following basic program will send and print this file:

OPEN "c:\dynamic\graphics\lion.pcx "FOR INPUT AS #1

WIDTH"LPT1:",255

DA$=INPUT$(3800,#1)

E$=CHR$(27)

LPRINT E$;"A";

LPRINT E$;"V150";E$;"H100";E$;"GP3800,";DA$;

LPRINT E$;"Q1";E$;"Z";

Advertising
This manual is related to the following products: