- 4.37.2.105. -
Table of Contents
4. Standard Units
4.37. Graph - Graph unit
4.37.2. Graph Unit Procedures and Functions
4.37.2.105. SetLineStyle procedure
4.37.2.105. SetLineStyle procedure
Targets: MS-DOS, Win32
Graph Unit
Sets the current line width and style.
Declaration:
procedure SetLineStyle(LineStyle: Word;
Pattern: Word;
Thickness: Word);
Remarks:
Affects all lines drawn by Line,
LineTo,
LineRel,
Rectangle,
DrawPoly, and so on.
Lines can be drawn solid, dotted, centerline, or dashed.
If invalid input is passed to SetLineStyle,
GraphResult returns a value of grError,
and the current line settings will be unchanged. See
LineSettingsType for a list of constants
used to determine line styles.
LineStyle is a value from SolidLn to UserBitLn(0..4),
Pattern is ignored unless LineStyle equals
UserBitLn, and Thickness is NormWidth or ThickWidth.
When LineStyle equals UserBitLn, the line is output using the 16-bit pattern
defined by the Pattern parameter. For example, if Pattern = $AAAA, then the
16-bit pattern looks like this:
1010101010101010 { NormWidth }
1010101010101010 { ThickWidth }
1010101010101010
1010101010101010
- 4.37.2.105. -