LINE Mnemonic - Draw Line in SYSPRINT Device

Syntax

'LINE'(x1,y1,x2,y2)

Description

The 'LINE' mnemonic draws a one-pixel-wide line in the SYSPRINT device from (x1,y1) to (x2,y2). Note that the x and y coordinates are defined in inches.

Parameter

Description

x1

Horizontal position of the upper-left corner of the line.

y1

Vertical position of the upper-left corner of the line.

x2

Horizontal position of the lower-right corner of the line.

y2

Vertical position of the lower-right corner of the line.

 

Example

0010 OPEN (1)"LP"
0020 PRINT (1)'LINE'(2,2,5,2)
0030 PRINT (1)'LINE'(5,2,5,4)
0040 PRINT (1)'LINE'(5,4,2,4)
0050 PRINT (1)'LINE'(2,4,2,2)
0060 END

The example above prints a rectangle that is 3x2 inches and offset by 2 inches from the top and left side of the page.

See Also

Mnemonics - Alphabetical Listing

Mnemonics - Group Listing