06.12.2012 Views

Technical Reference - KYOCERA Document Solutions

Technical Reference - KYOCERA Document Solutions

Technical Reference - KYOCERA Document Solutions

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The following program illustrates use of this command.<br />

!R! RES;<br />

UNIT C; CMNT Sets unit to cm;<br />

NEWP; CMNT Starts new path;<br />

SPD .5; CMNT Sets line width to .5 cm;<br />

PMZP 2, 2;<br />

PDZP 4, 4;<br />

DPAT 5;<br />

STRK;<br />

PAGE;<br />

EXIT;<br />

Figure 2. 20. Printout of the DPAT Example<br />

Path Mode Graphics<br />

In this program, the DPAT command selects the dash pattern with which the line is<br />

stroked.<br />

Predefined dash patterns are selected by specifying values from 1 to 10 for pattern-number.<br />

(A value of 1 specifies solid lines.) User-defined patterns can be selected by specifying<br />

values from 11 to 20. The next section explains how to use the SDP (Store Dash<br />

Pattern) command to define your own dash patterns. Specifying an undefined user pattern<br />

number results in solid black lines.<br />

User Defined Dash Patterns<br />

Using the SDP command, you can define your own dashed patterns for use in stroking<br />

lines, arcs, and curves. See the following example:<br />

!R! RES;<br />

UNIT P;<br />

SDP 11, 2, 2, 5, 2;<br />

UNIT C; CMNT Sets unit to cm;<br />

NEWP; CMNT Starts new path;<br />

SPD .5; CMNT Sets line width to .5 cm;<br />

PMZP 2, 2;<br />

PDZP 4, 4;<br />

DPAT 11;<br />

STRK;<br />

PAGE;<br />

EXIT;<br />

2-23

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!