VB
CODE |
Dim Mygraph As Graphics Dim Y As Single Dim X as Single Dim Oldpoint As New Point(50, 338) Dim CurrentPoint As Point Dim Mypen2 As New Pen(Brushes.Black, 5) Mygraph = PictureBox1.CreateGraphics For x = 1 To 30 Step 0.1 Y = Math.Sin(x) / x CurrentPoint.X = 40 + (x * 15) CurrentPoint.Y = 220 + (Y * 140) 'вот тут собственно надо как то "перевернуть" Mygraph.FillEllipse(Brushes.Black, CurrentPoint.X, CurrentPoint.Y, 5, 5) Mygraph.DrawLine(Mypen2, Oldpoint, CurrentPoint) Oldpoint = CurrentPoint Next |
1 пользователь, 1 гость