回复 10楼 lianyicq
我试了一下,不行,全部线宽都是1了。
回复 10楼 lianyicq
因为你规定了是picture的线宽从4变为了1,然而圆和直线都是在picture 下绘图的所以,没意义的。
Picture1.Line (0, 0)-(xa(k3), ya(k3)), Picture1.BackColor Picture1.Line (xa(k3), ya(k3))-(xb(k3), yb(k3)), Picture1.BackColor Picture1.Line (xb(k3), yb(k3))-(xc(k3), yc(k3)), Picture1.BackColor Picture1.Line (xb(k3), yb(k3))-(xe(k3), ye(k3)), Picture1.BackColor If k3 > 68 And k3 < 150 Then Picture1.Line (xe(k3) - 30, ye(k3))-(xe(k3) - 20, ye(k3) - 15 * Sqr(3)), Picture1.BackColor Picture1.Line (xe(k3), ye(k3))-(xe(k3) - 10, ye(k3) - 15 * Sqr(3)), Picture1.BackColor Else Picture1.Line (xe(k3) - 30, ye(k3))-(xe(k3) - 15, ye(k3) - 15 * Sqr(3)), Picture1.BackColor Picture1.Line (xe(k3), ye(k3))-(xe(k3) - 15, ye(k3) - 15 * Sqr(3)), Picture1.BackColor End If Picture1.Line (xc(k3), yc(k3))-(xd, yd), Picture1.BackColor If Command2.Caption = "显示轨迹" Then Picture1.DrawWidth = 1 Picture1.Line (-100, -(137 + 15 * Sqr(3)))-(200, -(137 + 15 * Sqr(3))), Picture1.BackColor End If