FritzImageOrientation

@objc
public enum FritzImageOrientation : Int32

Describes the orientation of the image. The orientations match the CGImagePropertyOrientation Enumeration from Apple. Refer to that documentation for clear descriptions of each case.

  • Infer FritzImageOrientation from AVCaptureConnection. This chooses reasonable defaults from the orientation of the camera. Note that this will not take device orientation into account.

    Declaration

    Swift

    @available(*, deprecated, message: "Initialize with FritzImageOrientation(connection﹚ now.")
    public static func fromAVCaptureConnection(from connection: AVCaptureConnection) -> FritzImageOrientation

    Parameters

    connection

    AVCaptureConnection

    Return Value

    FritzImageOrientation

  • Declaration

    Swift

    public init(_ uiOrientation: UIImage.Orientation)
  • Initialize from AVCaptureConnection. This chooses reasonable defaults from the orientation of the camera. Note that this will not take device orientation into account.

    Declaration

    Swift

    public init(from connection: AVCaptureConnection)

    Parameters

    connection

    AVCaptureConnection