---
title: "applyingExifOrientation(_:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avsemanticsegmentationmatte/applyingexiforientation(_:)"
---

# applyingExifOrientation(_:)

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

## Declaration

```swift
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

Return Value A new semantic segmentation matte instance.

## Discussion

Discussion This method throws an invalidArgumentException if you pass an unrecognized exifOrientation.

## See Also

### Creating a segmentation matte

- [init(fromImageSourceAuxiliaryDataType:dictionaryRepresentation:)](avfoundation/avsemanticsegmentationmatte/init(fromimagesourceauxiliarydatatype:dictionaryrepresentation:).md)
- [replacingSemanticSegmentationMatte(with:)](avfoundation/avsemanticsegmentationmatte/replacingsemanticsegmentationmatte(with:).md)
- [dictionaryRepresentation(forAuxiliaryDataType:)](avfoundation/avsemanticsegmentationmatte/dictionaryrepresentation(forauxiliarydatatype:).md)
