Enum LineCap
Defines the shape used to render the endpoints of a line or path segment.
public enum LineCap
Fields
Butt = 0Line ends exactly at the endpoint with a flat edge.
Square = 1Line extends past the endpoint with a square cap equal to half the line width.
Round = 2Line extends past the endpoint with a semicircular cap equal to half the line width.
Examples
var pen = new Pen(new Color32(0, 0, 0), 4) { LineCap = LineCap.Round };
canvas.DrawRectangle(Rectangle.FromSize(10, 10, 100, 50), pen);