public static bool RotationatePathIfNeeded(string path, RotateFlipType type) { if (type == RotateFlipType.RotateNoneFlipNone) return false; var bmp = Bitmap.FromFile (path); bmp.RotateFlip (type); bmp.Save (path); return true; }