Previous: SetGraphMode procedure To the Table of Content Next: SetLogicalPage procedure

- 4.37.2.105 -
Standard Units
Graph Unit
Graph Unit Procedures and Functions

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



Previous: SetGraphMode procedure To the Table of Content Next: SetLogicalPage procedure
SetGraphMode procedure Table of Content SetLogicalPage procedure

- 4.37.2.105 -