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

# setImageZoomFactor(_:center:)

Sets the zoom factor at the provided origin.

```
func setImageZoomFactor(_ zoomFactor: CGFloat, center centerPoint: NSPoint)
```

## Parameters

`zoomFactor`

The zoom factor to apply to the image.

`centerPoint`

The point that specifies the origin of the zoom factor.

## See Also

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

Specifies the zoom factor 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)