Graphics.LineJoin

From Xojo Documentation

Revision as of 21:00, 30 October 2020 by Gperlman (talk | contribs) (Notes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Graphics.LineJoinTypes )
aGraphics.LineJoin = newGraphics.LineJoinTypesValue
or
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.

Notes

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.