Rotate Image using RotateFlip in C#

前端 未结 2 1125
甜味超标
甜味超标 2021-01-20 07:51

I have this code to rotate an image in an if loop in C# Windows Form application, but the Form does not show anything in the form output.

Can anyone help?

         


        
2条回答
  •  粉色の甜心
    2021-01-20 08:44

    Try this:

    PictureBox1.Images.RotateFlip(RotateFlipType.Rotate180FlipX);
    PictureBox1.Refresh();
    

提交回复
热议问题