9.1 LineShape

A Line composed of a
LineShape and a Paint:

[1kb 79x40 GIF]

The line shape is defined by five attributes:

Begin and End.
The beginning and ending points of the line.
Width.
The width of the line. If the width is 0, the line will be drawn with the smallest possible line width of the output device.
Dashes.
List of tuples of integers. The first integer defines the length of the first dash, the next integer defines the length of the space to the next dash and so on.
(1,2) makes a line dashed like: [915 bytes 103x6 GIF]
(4,1,1,1) makes a line dashed like: [905 bytes 108x6 GIF]
Cap.
Specifies how the end of the line looks. See Cap and Join Styles.

A corresponding Line graphical object is defined with LineShape as the shape. Line uses FillLine of the Paint to draw itself (see Predefined Paint Operations).


The Bifrost Graphics System - Reference Manual
© 1991-2004 Mjølner Informatics
[Modified: Tuesday October 24th 2000 at 22:29]