---
title: srcRect
framework: Application Services
role: symbol
role_heading: Instance Property
platforms: [macOS 10.0+]
path: applicationservices/opencpicparams/1463268-srcrect
---

# srcRect

The optimal bounding rectangle for the resolution indicated by the hRes and vRes fields. To display a picture at a resolution other than that specified in the hRes and vRes fields, your application should compute an appropriate destination rectangle by scaling the image’s width and height by the destination resolution divided by the source resolution.

## Declaration

```swift
var srcRect: Rect
```
