Graphics.LineCap

From Xojo Documentation

Property (As Graphics.LineCapTypes )
aGraphics.LineCap = newGraphics.LineCapTypesValue
or
Graphics.LineCapTypesValue = aGraphics.LineCap

New in 2020r2

Supported for all project types and targets.

The way in which the end of the line will be drawn.

Notes

Affects only lines drawn when using DrawPath, GraphicsPath and Object2D.

Sample Code

In the Paint event of a Canvas, set the line cap to round:

g.LineCap = Graphics.LineCapTypes.Round

See Also

LineCapTypes enumeration and LineJoin property.