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();
}