I have created a small line chart on a winform, using simple procedure (vb.net):
MyGraphics = CreateGraphics()
MyPenLine = New Pen(LineColor, 1)
MyPenLine.DashStyle = DashStyle.Solid
Dim pt1 As Point = New Point(X, Y)
Dim pt2 As Point = New Point(X, Y)
Dim pt3 As Point = New Point(X, Y)
Dim pt4 As Point = New Point(X, Y)
MyGraphics.DrawLine(MyPenLine, pt1, pt2)
MyGraphics.DrawLine(MyPenLine, pt2, pt3)
MyGraphics.DrawLine(MyPenLine, pt3, pt4)
The result is not what I expected:
The drawn lines lack sharpness. It looks like it is painted in "paint" and the lines look like they are made up of dozens of small lines.
Is there any particular reason why the chart lines look like this and why they are not smooth? Is there any other method to paint something on a winform to make it look more... professional and visually appealing?