I use these code to draw a rectangle but with round corners
but as you see in the attached image, the corner is rough
could you give me some way to solve it, thanks so much !!!
VB.NET:
q.StartFigure()
q.AddArc(30, 50, 25, 25, 180, 90)
q.AddLine(55, 50, 300, 50)
q.AddArc(300, 50, 25, 25, 270, 90)
q.AddLine(325, 75, 325, 100)
q.AddArc(300, 100, 25, 25, 0, 90)
q.AddLine(300, 125, 55, 125)
q.AddArc(30, 100, 25, 25, 90, 90)
q.CloseFigure()
e.Graphics.FillPath(Brushes.Blue, q)
could you give me some way to solve it, thanks so much !!!