From Xojo Documentation

Property (As Graphics.LineJoinTypes )
aGraphics.LineJoin = newGraphics.LineJoinTypesValue
Graphics.LineJoinTypesValue = aGraphics.LineJoin

New in 2020r2

Supported for all project types and targets.

The way in which the end of the line will be drawn when connecting to another line.


Affects only lines drawn when using DrawPath, GraphicsPath and Object2D. It will also affect how corners are drawn when using DrawRectangle.

Sample Code

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

g.LineJoin = Graphics.LineJoinTypes.Round

See Also

LineJoinTypes enumeration, LineCap property, DrawPath, DrawRectangle methods and GraphicsPath class.