Bombsquad.Exif.Models.ExifOrientationExtensions.GetRotateFlipType C# (CSharp) Method

GetRotateFlipType() public static method

public static GetRotateFlipType ( this orientation ) : RotateFlipType
orientation this
return RotateFlipType
        public static RotateFlipType GetRotateFlipType( this ExifOrientation orientation )
        {
            switch ( orientation )
            {
                case ExifOrientation.HorizontalFlip:
                    return RotateFlipType.RotateNoneFlipX;

                case ExifOrientation.Rotate180:
                    return RotateFlipType.Rotate180FlipNone;

                case ExifOrientation.VerticalFlip:
                    return RotateFlipType.Rotate180FlipX;

                case ExifOrientation.Transpose:
                    return RotateFlipType.Rotate90FlipX;

                case ExifOrientation.Rotate270:
                    return RotateFlipType.Rotate90FlipNone;

                case ExifOrientation.Transverse:
                    return RotateFlipType.Rotate270FlipX;

                case ExifOrientation.Rotate90:
                    return RotateFlipType.Rotate270FlipNone;

                default:
                    return RotateFlipType.RotateNoneFlipNone;
            }
        }
ExifOrientationExtensions