7197 Owner’s Guide Chapter 6: Commands
November 2002
119
Print Advanced Raster Graphics
ASCII:
ESC . m n rl rh d1 … dn
Hexadecimal:
1B 2E m n rl rh d1 … dn
Decimal:
27 46 m n rl rh d1 … dn
Value of m:
Horizontal offset from left margin = 8 x n dots
Value of n:
Number of data bytes that compose the raster
Value of r:
Number of times the raster has to be printed = 256 x rh +
rl
Value of d:
d1 … dn = Data bytes
Range:
0 ≤ m, n ≤ 72 (80mm), 0 ≤ m, n ≤ 53 (58mm)
0 ≤ r ≤ 65536
0 ≤ d1 … dn ≤ 255
Prints a horizontal raster of graphics data one or multiple times.
Horizontal offset and number of data bytes are variable and specified by parameters.
Example:
• MSComm1.Output = Chr$(&H1B) & Chr$(&H2E) & Chr$(10) & Chr$(100) & Chr$(2)
& Chr$(10) & Chr$(&HFF). . . & Chr$(&HFF)
Exceptions:
Advanced Raster graphics is not available in Page Mode.
Select Single-Density Graphics
ASCII: ESC K n1 n2 d1 … dn
Hexadecimal: 1B 4B n1 n2 d1 ... dn
Decimal: 27 75 n1 n2 d1 ... dn
Value of n:
Value of n (8-Dot Single
Density Mode)
Value of n (24-Dot Single
Density Mode)
Value of d
n1 + (256 x n2) 3 x [n1 + (256 x n2)] Number of Bytes of Data
(Printed Down, Then
Across)
Enters one line of 8-dot single-density graphics into the print buffer. Any print command
is required to print the line, after which the printer returns to normal processing mode.
The number of bytes sent is represented by the formulas in the table.