如何编写代码使得VB的Image控件或Picture控件旋转?
如何编写代码使得VB的Image控件或Picture控件旋转?
以下是引用ZMGTCDY在2013-4-7 09:15:16的发言:
顺时针旋转90度:
PictureBox1.Image = Me.PictureBox1.Image
Me.PictureBox1.Image.RotateFlip(RotateFlipType.Rotate90FlipNone)
Me.PictureBox1.Refresh()
逆时针旋转90度:
Me.PictureBox1.Image.RotateFlip(RotateFlipType.Rotate270FlipNone)
PictureBox1.Image = Me.PictureBox1.Image
PictureBox1.Refresh()
顺时针旋转90度:
PictureBox1.Image = Me.PictureBox1.Image
Me.PictureBox1.Image.RotateFlip(RotateFlipType.Rotate90FlipNone)
Me.PictureBox1.Refresh()
逆时针旋转90度:
Me.PictureBox1.Image.RotateFlip(RotateFlipType.Rotate270FlipNone)
PictureBox1.Image = Me.PictureBox1.Image
PictureBox1.Refresh()
以下是引用ZMGTCDY在2013-4-7 09:15:16的发言:
别乱回复,这些没用的代码!
顺时针旋转90度:
PictureBox1.Image = Me.PictureBox1.Image
Me.PictureBox1.Image.RotateFlip(RotateFlipType.Rotate90FlipNone)
Me.PictureBox1.Refresh()
逆时针旋转90度:
Me.PictureBox1.Image.RotateFlip(RotateFlipType.Rotate270FlipNone)
PictureBox1.Image = Me.PictureBox1.Image
PictureBox1.Refresh()
别乱回复,这些没用的代码!
顺时针旋转90度:
PictureBox1.Image = Me.PictureBox1.Image
Me.PictureBox1.Image.RotateFlip(RotateFlipType.Rotate90FlipNone)
Me.PictureBox1.Refresh()
逆时针旋转90度:
Me.PictureBox1.Image.RotateFlip(RotateFlipType.Rotate270FlipNone)
PictureBox1.Image = Me.PictureBox1.Image
PictureBox1.Refresh()
别乱回复,这些没用的代码!