Use round cap for line drawing

This commit is contained in:
Jaex 2016-08-19 07:55:47 +03:00
parent 9f6bac3856
commit 029d63f457
2 changed files with 4 additions and 1 deletions

View file

@ -38,7 +38,7 @@ protected override void DrawLine(Graphics g, Pen pen)
{
pen.CustomEndCap = arrowCap;
base.DrawLine(g, pen);
g.DrawLine(pen, StartPosition, EndPosition);
}
}
}

View file

@ -58,6 +58,9 @@ public override void OnDraw(Graphics g)
protected virtual void DrawLine(Graphics g, Pen pen)
{
pen.StartCap = LineCap.Round;
pen.EndCap = LineCap.Round;
g.DrawLine(pen, StartPosition, EndPosition);
}