---
title: destinationRect
framework: screencapturekit
role: symbol
role_heading: Instance Property
path: screencapturekit/scscreenshotconfiguration/destinationrect
---

# destinationRect

A rectangle that specifies whether to output screenshots in a subset of the output image.

## Declaration

```swift
var destinationRect: CGRect { get set }
```

## Discussion

Discussion If you don’t specify a destination rectangle, the system uses the full dimensions of the output surface. The rectangle is specified in pixels in the display’s coordinate system. note: The system doesn’t reference this value when capturing a single window because it draws the window into the output’s full bounds.
