<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVSemanticSegmentationMatte/applyingExifOrientation(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVSemanticSegmentationMatte(im)semanticSegmentationMatteByApplyingExifOrientation:"
  },
  "title" : "applyingExifOrientation(_:)"
}
-->

# applyingExifOrientation(_:)

Returns a new semantic segmentation matte instance with the specified Exif orientation applied.

```
func applyingExifOrientation(_ exifOrientation: CGImagePropertyOrientation) -> Self
```

## Parameters

`exifOrientation`

A <doc://com.apple.documentation/documentation/ImageIO/CGImagePropertyOrientation> value expressing how the matte should be rotated or mirrored.

## Return Value

A new semantic segmentation matte instance.

## Discussion

This method throws an <doc://com.apple.documentation/documentation/Foundation/NSExceptionName/invalidArgumentException> if you pass an unrecognized `exifOrientation`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)