---
title: "orientationTransform(for:)"
framework: coreimage
role: symbol
role_heading: Instance Method
path: "coreimage/ciimage/orientationtransform(for:)"
---

# orientationTransform(for:)

The affine transform for changing the image to the given orientation.

## Declaration

```swift
func orientationTransform(for orientation: CGImagePropertyOrientation) -> CGAffineTransform
```

## Discussion

Discussion Returns a CGAffineTransform for the CGImagePropertyOrientation value to apply to the image.

## See Also

### Working with Orientation

- [oriented(_:)](coreimage/ciimage/oriented(_:).md)
