Winform PictureBox图片旋转

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

顺时针旋转90度 RotateFlipType.Rotate90FlipNone
逆时针旋转90度 RotateFlipType.Rotate270FlipNone
水平翻转 RotateFlipType.Rotate180FlipY
垂直翻转 RotateFlipType.Rotate180FlipX

posted @ 2020-03-25 14:49  张晓风  阅读(1232)  评论(0编辑  收藏  举报