Gets or sets the current line cap style.
All subsequent drawing methods will use line cap style set by this method.
Syntax
lineCap = G2D.LineCap
G2D.LineCap lineCap&
The following line cap styles can be set with this method:
Style |
Description |
DEFAULT |
The ends of lines are squared off at the endpoints. Default value. |
ROUND |
The ends of lines are rounded. |
SQUARE |
The ends of lines are squared off by adding a box with an equal width and half the height of the line's thickness. |
Examples
Example1: Draw a line with a rounded ends.
Import G2D From "lib/graphics/2d.bas"
G2D.LineWidth 20
G2D.LineCap G2D.ROUND
Line (100, 100)-(500,300), 2
See Also
G2D.LineWidth
G2D.LineDash