---
title: "transform(for:)"
framework: vision
role: symbol
role_heading: Instance Method
path: "vision/horizonobservation/transform(for:)"
---

# transform(for:)

Creates an affine transform for the specified image width and height.

## Declaration

```swift
func transform(for imageSize: CGSize) -> CGAffineTransform
```

## See Also

### Getting the transform

- [transform](vision/horizonobservation/transform.md)
