'一个窗体,一个PictureBox
Private Const Pi As Single = 3.14 / 180 'VB是弧度制
Private Sub Form_Load()
Picture1.DrawWidth = 2
Picture1.AutoRedraw = True
For i = 0 To 360 Step 10 '去掉Setp 10就是实线了。
X1 = Cos((i - 90) * Pi) * 710 + 900
Y1 = Sin((i - 90) * Pi) * 710 + 900
Picture1.PSet (X1, Y1), vbBlue
Next i
Picture1.Refresh
End Sub
-----------------
感谢:双色心情
[本日志由 admin 于 2013-11-01 10:44 PM 编辑]
引用通告地址 (0):
http://www.cnng.net/blog/trackback.asp?tbID=15
http://www.cnng.net/blog/trackback.asp?tbID=15&CP=GBK
http://www.cnng.net/blog/trackback.asp?tbID=15
http://www.cnng.net/blog/trackback.asp?tbID=15&CP=GBK