![]() |
kiranreddys.com free software for you |
|
intleft = 10
intbottom = 150
intwidth = 20
intheight = 100
Picture1.ScaleMode = vbPixels
Picture1.FillStyle = 7 'Fil style 0 to 8
Picture1.Line (intleft, intbottom)-(intleft + intwidth, intbottom - intheight),
, B
Dim inti As Single
Dim intj As Single
Dim intht As Single
Dim intwd As Single
Picture1.ScaleMode = vbPixels 'Change Scale Mode to
Pixels
Picture1.Cls 'Clear The Picture1ture
Box
For inti = 0 To Picture1.ScaleHeight Step 4
Picture1.CurrentX = 0
Picture1.CurrentY = inti
For intj = 0 To Picture1.ScaleWidth
Picture1.Line -(intj, inti + ampl * Sin(intj / perc))
Next intj
Next inti
For inti = 1 To intht Step 2
Picture1.Line (0, inti)-(intwd, inti)
Next inti
Private Sub Picture1_MouseDown(Button
As Integer, Shift As Integer, X As
Single, Y As Single)
x1 = X
y1 = Y
End Sub
Private Sub Picture1_MouseMove(Button As
Integer, Shift As Integer, X As
Single, Y As Single)
If Button = vbLeftButton Then
Picture1.Line (x1, y1)-(X, Y), vbRed
x1 = X
y1 = Y
End If
End Sub