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;
相關文章
相關標籤/搜索