VB编程 改变图片大小
1个回答
展开全部
Private Sub Command1_Click()
Static i As Integer
i = i + 1
Image1.Stretch = True
Image1.Width = Image1.Width * (1 + i * 0.1)
Image1.Height = Image1.Height * (1 + i * 0.1)
End Sub
Private Sub Command2_Click()
Static i As Integer
i = i + 1
Image1.Stretch = True
Image1.Width = Image1.Width * (1 - i * 0.1)
Image1.Height = Image1.Height * (1 - i * 0.1)
End Sub
Static i As Integer
i = i + 1
Image1.Stretch = True
Image1.Width = Image1.Width * (1 + i * 0.1)
Image1.Height = Image1.Height * (1 + i * 0.1)
End Sub
Private Sub Command2_Click()
Static i As Integer
i = i + 1
Image1.Stretch = True
Image1.Width = Image1.Width * (1 - i * 0.1)
Image1.Height = Image1.Height * (1 - i * 0.1)
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询