c# 旋转图片 无GDI+一般性错误

 using (System.Drawing.Bitmap backgroudImg = System.Drawing.Bitmap.FromFile(DoubleClickPicInfo.FileName) as System.Drawing.Bitmap)

                {

                    backgroudImg.RotateFlip("1".Equals(pargs) ? RotateFlipType.Rotate270FlipNone : RotateFlipType.Rotate90FlipNone);

                    System.Drawing.Bitmap backgroudImgtemp = backgroudImg;

                    backgroudImg.Save(DoubleClickPicInfo.FileName);

                    backgroudImg.Dispose();

                }

  

你可能感兴趣的:(C#)