Zoomie писал(а):Что типа в этом роде:
- Код: Выделить всё
Dim PointY() As Integer
Dim I As Integer
Dim kX As Single
Dim kY As Single
Dim HighPoint As Integer
Dim LastX As Integer
Dim LastY As Integer
Const PointsCount = 20
Private Sub Form_Load()
Randomize Timer
LastX = 0
LastY = Picture1.Height
ReDim PointY(1 To PointsCount) As Integer
For I = LBound(PointY) To UBound(PointY)
PointY(I) = Int(Rnd * Picture1.Height \ 2)
Next I
kX = Picture1.Width / (UBound(PointY) - LBound(PointY))
For I = LBound(PointY) To UBound(PointY)
If PointY(I) > HighPoint Then
HighPoint = PointY(I)
End If
Next I
kY = Picture1.Height / HighPoint / 2
For I = LBound(PointY) To UBound(PointY)
Picture1.Line (LastX, LastY)-(I * kX, Picture1.Height - PointY(I) * kY), vbBlue
LastX = I * kX
LastY = Picture1.Height - PointY(I) * kY
Next I
End Sub
что это - че-то не разберусь... если можно - кратенько опишите