Difference between revisions of "Graphics.LineJoin"

From Xojo Documentation

(Notes)
 
Line 9: Line 9:
  
 
==Notes==
 
==Notes==
Affects only lines drawn when using [[Graphics.DrawPath|DrawPath]] and [[GraphicsPath]]. It will also affect how corners are drawn when using [[Graphics.DrawRectangle|DrawRectangle]].
+
Affects only lines drawn when using [[Graphics.DrawPath|DrawPath]], [[GraphicsPath]] and [[Object2D]]. It will also affect how corners are drawn when using [[Graphics.DrawRectangle|DrawRectangle]].
  
 
==Sample Code==
 
==Sample Code==

Latest revision as of 21:00, 30 October 2020

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.