<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Quartz",
  "identifier" : "/documentation/Quartz/IKImageView/setRotationAngle(_:center:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Quartz"
    ],
    "preciseIdentifier" : "c:objc(cs)IKImageView(im)setRotationAngle:centerPoint:"
  },
  "title" : "setRotationAngle(_:center:)"
}
-->

# setRotationAngle(_:center:)

Sets the rotation angle at the provided origin.

```
func setRotationAngle(_ rotationAngle: CGFloat, center centerPoint: NSPoint)
```

## Parameters

`rotationAngle`

The rotation angle to apply to the image.

`centerPoint`

The point that specifies the origin of the rotation angle.

## See Also

[`rotationAngle`](/documentation/Quartz/IKImageView/rotationAngle)

Specifies the rotation angle for the image view.



---

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)