Line; Line At Current Position - IBM 6400 Programmer's Reference Manual

Line matrix printers, intelligent printer data stream
Table of Contents

Advertisement

This order does not update the current graphics position.

Line

C1
L1
P1-Pn
Description: This order specifies one or more connected lines.
L1 is a one-byte value that specifies the length of the parameter field that
follows. The value of L1 must be a multiple of four and cannot be zero. If L1
equals four, no line is drawn, but the printer updates the graphics current
position to the points specified by parameters P1 to P4.
Parameters P1 and P2 form a two byte value that specifies the first X coordinate
point. Parameters P3 and P4 form a two byte value that specifies the first
Y coordinate point. Parameters P5 to P8, if present, specify the second X and Y
coordinate points. The printer draws a line from the point specified by the first
pair of coordinates to the point specified by the second pair of coordinates. If
additional coordinate pairs are present, the printer draws additional lines from
the previous end point to the next coordinate pair.
This order uses the current values of color, mix, line type, and line width.
Following this order, the printer updates the graphics current position to the last
end point specified in the order.

Line at Current Position

81
L1
P1-Pn
Description: This order specifies one or more connected lines. The printer
draws a line from the current graphics position to the points specified by the first
set of X and Y coordinates in the parameters. The printer then draws additional
lines from the previous end point to the next coordinate pair, if additional
coordinates are present.
The printer uses the current attributes for color, mix, line type, and line width in
drawing the lines.
L1, the length, specifies the number of bytes following this byte. The value of L1
must be a multiple of four. If L1 is zero, no line is drawn.
Parameters P1 to Pn, if present, form two byte values that specify the X and Y
coordinates of the end points for a series of connected lines. This order updates
the current graphics position to the last line end point. If the order does not
specify any points, the current graphics position does not change. P1 and P2
form a two byte sequence that specifies the X coordinate of the second end
point. P3 and P4 form a two byte sequence that specifies the Y coordinate of the
second end point. Additional X and Y coordinates, if present, are specified in the
remaining parameters, following the same format.
Graphics Command Set
Chapter 3. IPDS Commands Reference
105

Advertisement

Table of Contents
loading

Table of Contents