# `GSFrameView zoomViewByFactor:andCentrePoint:`

*Instance Method*

Zooms the view by the given factor and centers the passed point.

## Declaration

```swift
func zoom(byFactor factor: CGFloat, andCentrePoint p: NSPoint)
```

```objc
- (void) zoomViewByFactor:(CGFloat) factor andCentrePoint:(NSPoint) p;
```

```python
zoomViewByFactor_andCentrePoint_(factor: float, p: NSPoint)
```

## Parameters

- `factor` — Relative zoom factor
- `p` — A point within the view that should be scrolled to the centre of the zoomed view.

