vb怎么画点,使用pset方法?
1个回答
展开全部
Private Sub Command1_Click()
Dim i As Integer, n As Byte, x As Integer, y As Integer
Dim r As Integer, g As Integer, b As Integer
For i = 1 To 1000
Randomize
n = Int(Rnd * 60 + 10)
x = Rnd * Form1.Width
y = Rnd * Form1.Height
r = Int(Rnd * 256)
g = Int(Rnd * 256)
b = Int(Rnd * 256)
Form1.DrawWidth = n
Form1.PSet (x, y), RGB(r, g, b)
Next i
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询