06.12.2012 Views

Technical Reference - KYOCERA Document Solutions

Technical Reference - KYOCERA Document Solutions

Technical Reference - KYOCERA Document Solutions

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Line Joins<br />

Miter Limit<br />

Path Mode Graphics<br />

stroking the path. PRESCRIBE refers to the line cap type when the current path is<br />

stroked onto the page, rather than while the path is being constructed. Therefore, the program<br />

above renders the line with round caps rather than square ones.<br />

When a path consists of multiple connected line segments, the manner in which they are<br />

stroked onto the page depends on the current line join type.<br />

PRESCRIBE provides four types of line joins. These are called beveled, mitered, round,<br />

and notched. These are illustrated below.<br />

Figure 2. 18. Joins<br />

Beveled join Mitered join Round join Notched join<br />

The default line join type is beveled. With beveled joins, connected line segments end<br />

with butt caps, and the notch at the larger angle between the segments is filled with a triangle.<br />

With mitered joins, the edges of connected line segments are extended until they meet.<br />

This type of join is limited by the miter limit (explained below).<br />

With round joins, connected line segments are joined with circular caps.<br />

Notched joins leave a notch at the larger angle between the connected line segments.<br />

You can switch from the current line join type to any of the other types with the SLJN<br />

(Set Line JoiN) command. This command uses the following format:<br />

SLJN line-join mode;<br />

Values for line-join mode include:<br />

1 (for beveled joins)<br />

2 (for mitered joins)<br />

3 (for round joins)<br />

4 (for notched joins)<br />

When using mitered line joins, the use of such joins is limited by the miter limit. The<br />

miter limit is the maximum ratio of the distance l between the inner and outer corners of<br />

a mitered join and the width w of the lines joined.<br />

2-21

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

Saved successfully!

Ooh no, something went wrong!