image::Orientation FSPInternalImageOrientationFromUIImageOrientation()

in ios/SpectrumKit/SpectrumKit/Image/FSPImageOrientation.mm [33:53]


image::Orientation FSPInternalImageOrientationFromUIImageOrientation(const UIImageOrientation orientation)
{
  switch (orientation) {
    case UIImageOrientationUp:
      return image::Orientation::Up;
    case UIImageOrientationDown:
      return image::Orientation::Bottom;
    case UIImageOrientationLeft:
      return image::Orientation::Left;
    case UIImageOrientationRight:
      return image::Orientation::Right;
    case UIImageOrientationUpMirrored:
      return image::Orientation::UpMirrored;
    case UIImageOrientationDownMirrored:
      return image::Orientation::BottomMirrored;
    case UIImageOrientationLeftMirrored:
      return image::Orientation::LeftMirrored;
    case UIImageOrientationRightMirrored:
      return image::Orientation::RightMirrored;
  }
}