VB如何实现图像的放大缩小
Private Sub Timer1_Timer()
Dim X As Integer, Y As Single, z As Single
Dim scaley As Single
Dim j As Integer
Static i As Integer
Dim ADData As Long '定义AD采样变量
AC6611_AD hDevice, 0, ADData 'AD采样,0通道,AC6611一共有16个通道0-15,由addata返回AD采样值0-4095
'Print AC6611_ADToVoltage(ADData, 0) '显示采样的数据,并转换为0-5V电压实际电压值
'Picture1.DrawWidth = 2
scaley = Picture1.ScaleHeight / 4
Picture1.CurrentX = 0
Picture1.CurrentY = Picture1.ScaleHeight / 2
i = i + 1
adata(j) = AC6611_ADToVoltage(ADData, 0)
X = i / 30 * scaley
Y = adata(j) / 5 * scaley
z = adata(j)
Picture1.PSet Step(X, -Y), vbRed
end sub
Private Sub Command1_Click()
Timer1.Enabled = True
End Sub
这是我的一段采集程序,有谁可以帮我把采集的曲线实现放大缩小么?