Apachai.Effects.Rotationner.RotationatePathIfNeeded C# (CSharp) Метод

RotationatePathIfNeeded() публичный статический метод

public static RotationatePathIfNeeded ( string path, RotateFlipType type ) : bool
path string
type RotateFlipType
Результат bool
        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;
        }