...Pen(Color.Blue, 2), New PointF(0, halfHeight), New PointF(Me.ClientSize.Width, halfHeight))
Dim points(Me.ClientSize.Width * 2) As PointF
' we'll get it smoother by drawing 2 points as we move 1 pixel across (though this is wasteful when freq is large)
For i As Integer...