根据动作连续旋转图像

时间:2013-03-22 10:04:32

标签: vb.net

如果操作完成,如何在任何操作上旋转图像并关闭它。示例就像同步图像一样。

1 个答案:

答案 0 :(得分:0)

我假设您使用picturebox来保留image,如果是,您可以使用以下代码rotate image

    'I just used a while loop here for testing purpose only, you can use a timer
    'for rotating your image smoothly. By the way, stop and start the timer
    'according to your need.
    While True
        PictureBox1.Image.RotateFlip(RotateFlipType.Rotate90FlipNone)
        PictureBox1.Refresh()
    End While

RotateFlip