vb 中如何实现图像的平移

vb 中如何实现图像的平移,第1张

Private Sub Command1_Click()

Static i As Long

Picture1.Cls

Picture1.Circle (i * 10, 0), 30, vbRed

i = i + 1

End Sub

Private Sub Form_Load()

Picture1.Scale (-50, -50)-(50, 50)

End Sub

图像放在图搭好缺像框内,更改图像框的left属性的值就行袜乱了。

Private Sub Command1_Click()

Image1.Left = Image1.Left + 200 '向右知辩移动

End Sub

Private Sub Command2_Click()

Image1.Left = Image1.Left - 200 '向左移动

End Sub


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/8184815.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-14
下一篇 2023-04-14

发表评论

登录后才能评论

评论列表(0条)

保存