winform 旋转图片

            //img.RotateFlip(RotateFlipType.Rotate90FlipNone);
            //顺时针旋转90度 RotateFlipType.Rotate90FlipNone 
            //逆时针旋转90度 RotateFlipType.Rotate270FlipNone 
            //水平翻转 RotateFlipType.Rotate180FlipY 
            //垂直翻转 RotateFlipType.Rotate180FlipX

            Image img = pictureBox1.Image;
            img.RotateFlip(RotateFlipType.Rotate90FlipNone);
            pictureBox1.Image = img;

 

posted @ 2019-05-17 15:36  .NET_海  阅读(580)  评论(0编辑  收藏  举报