Table of Contents

Enum LineCap

Namespace
LMKit.Graphics.Drawing
Assembly
LM-Kit.NET.dll

Defines the shape used to render the endpoints of a line or path segment.

public enum LineCap

Fields

Butt = 0

Line ends exactly at the endpoint with a flat edge.

Square = 1

Line extends past the endpoint with a square cap equal to half the line width.

Round = 2

Line 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);