LineCap Property
Class THtml5Canvas2D
The LineCap property sets or returns the style of the end caps for a line.
Note:
The value "clcRound" and "clcSquare" make the lines slightly longer.
Property Values
Default. A flat edge is added to each end of the line.
A rounded end cap is added to each end of the line.
A square end cap is added to each end of the line.
Example:
Draw a line with rounded end caps:
Canvas.BeginPath;
Canvas.LineWidth := 10;
Canvas.LineCap := clcRound;
Canvas.MoveTo(10,30);
Canvas.LineTo(130,30);
Canvas.Stroke;