请教高手有关picturebox的问题
本人要做个上位机软件如下图:
根据数据库里查询的数据 在picturebox中显示出来
有下面问题没有解决
1)根据不同的横坐标画不同的颜色。颜色是RGB颜色
2)一小问题 怎么在picturebox建立坐标,并有刻度,(志需要X轴的刻度)
请教高手。。
Public Sub 画图标(pic As PictureBox) Dim i As Long Dim j As Long Dim m As Double Dim k As Long Dim n As Long m = (pic.Height - 256) / (256 * 2) k = 10 n = 10 For i = 0 To 255 pic.Line (0, i * m - m)-(512, i * m), RGB(255 - i, i, 0), BF Next i For i = 0 To 255 pic.Line (0, i * m + 254 * m)-(512, i * m + 255 * m), RGB(0, 255 - i, i), BF Next i m = (pic.Height - 256) / 4 pic.CurrentX = 550 pic.CurrentY = 0 pic.Print 500 pic.CurrentX = 550 pic.CurrentY = m pic.Print 400 pic.CurrentX = 550 pic.CurrentY = m * 2 pic.Print 300 pic.CurrentX = 550 pic.CurrentY = m * 3 pic.Print 200 pic.CurrentX = 550 pic.CurrentY = m * 4 pic.Print 100 End Sub