Genicom GEK 00031B User Manual

Page 227

Advertising
background image

GEK-00029B

5000 Series Programmer’s Manual

227

DECVEC

Draw Vector: Draw a vertical or horizontal line.
Source: Application

Destination: Level 3 Extension

Format

CSI Ps1 ; Pn2 ; Pn3 ; Pn4 ; Pn5 ! |
Description

The selective parameter options are as follows:

Ps1

Action

0

Draw X (horizontal) line.

1

Draw Y (vertical) line.

Select the numeric parameters as follows:

Pn

Meaning

Pn2

X start position

Pn3

Y start position

Pn4

Line length

Pn5

Line width

DECVEC does not modify the active position.

The unit for numeric parameters is selected using the Select Size

Unit (SSU) command Positioning Unit Mode (PUM) has no effect on
DECVEC unit size.

For an X line, Pn4 specifies horizontal length and Pn5 specifies
vertical width. For a Y line, Pn4 specifies vertical length and Pn5
specifies horizontal width. Since a vector has length and width, it is
considered a filled rectangle. The rectangle is not centered on the

endpoints. DECVEC rectangles are positioned identically relative to
the endpoints as relative vectors. See DECRVEC.
Error Handling

If Ps1 is any value other than 0 or 1, the entire command is ignored.

Missing parameters are interpreted as 0. If the printer receives a

DECVEC command with too many parameters, the first five are used
and others are ignored.

If the requested line is less than 1 pixel long, the printer draws a line
1 pixel long. If the requested line is less than 1 pixel wide, the printer
draws a line 1 pixel wide.

Do not rely upon the defaults for Pn4 and Pn5. Define the vector to

be at least 1 pixel long and 1 pixel wide. Poor quality may result
when processing very short or very thin vectors.

Margin settings do not affect vectors. DECVEC may draw lines that
extend beyond the margins, but not out of the printable area. Vectors
that extend outside of the printable area are clipped.

Advertising