比如要在窗体上画圆,Text1供输入角度(不得超过360,否则出错),Command1画图:
Private Sub Command1_Click()
Const rPI As Single = 3.14159265358979 '圆周率
Me.Cls '清屏
Me.Circle (1400, 1400), 1000, , 0, Val(Text1.Text) / 180 * rPI
End Sub
============================================================
汗~我对一无所知……
我写的明显是VB6的程序……
============================================================
Circle (x, y), radius, [color], [start], [end] [, aspect]
(x,y) 代表圆心
radius 代表半径
color 代表颜色
start 代表起始弧度
end 代表结束弧度 *start与end差距不能大于360
比如在窗体上画圆,Text1输角度,Command1画图:
Private Sub Command1_Click()
Const rPI As Single = 3.14159265358979 '圆周率
Me.Cls '清屏
Me.Circle (1400, 1400), 1000, , 0, Val(Text1.Text) / 180 * rPI
End Sub