我假设你想要在里面旋转图像,因为旋转盒子本身没有多大意义(无论如何都是不可能的).
试试这个:
myPictureBox.Image.RotateFlip(RotateFlipType.Rotate180FlipNone);
Run Code Online (Sandbox Code Playgroud)
小智 5
PictureBox1.Image.RotateFlip(RotateFlipType.Rotate180FlipNone)
PictureBox1.Refresh()
Run Code Online (Sandbox Code Playgroud)
当您尝试使用以下方法旋转图像时:
PictureBox1.Image.RotateFlip(RotateFlipType.Rotate180FlipNone)
Run Code Online (Sandbox Code Playgroud)
在关闭表单并再次打开它(不是项目,只是表单)之前,什么都不会发生。如果您想立即旋转,那么您应该使用PictureBox1.Refresh().
| 归档时间: |
|
| 查看次数: |
38602 次 |
| 最近记录: |