Created
April 16, 2016 06:31
-
-
Save FlexMonkey/b62ae8a930d15579fb89a0fd937517d7 to your computer and use it in GitHub Desktop.
imageOrientationToTiffOrientation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func imageOrientationToTiffOrientation(value: UIImageOrientation) -> Int32 | |
{ | |
switch (value) | |
{ | |
case UIImageOrientation.Up: | |
return 1 | |
case UIImageOrientation.Down: | |
return 3 | |
case UIImageOrientation.Left: | |
return 8 | |
case UIImageOrientation.Right: | |
return 6 | |
case UIImageOrientation.UpMirrored: | |
return 2 | |
case UIImageOrientation.DownMirrored: | |
return 4 | |
case UIImageOrientation.LeftMirrored: | |
return 5 | |
case UIImageOrientation.RightMirrored: | |
return 7 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment