---
title: "convertRectToBacking(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsscreen/convertrecttobacking(_:)"
---

# convertRectToBacking(_:)

Converts the rectangle to the device pixel aligned coordinates system of a screen.

## Declaration

```swift
func convertRectToBacking(_ rect: NSRect) -> NSRect
```

## Parameters

- `rect`: The rectangle.

## Return Value

Return Value The rectangle converted to the device pixel aligned coordinates system of the screen.

## See Also

### Converting Between Screen and Backing Coordinates

- [backingAlignedRect(_:options:)](appkit/nsscreen/backingalignedrect(_:options:).md)
- [backingScaleFactor](appkit/nsscreen/backingscalefactor.md)
- [convertRectFromBacking(_:)](appkit/nsscreen/convertrectfrombacking(_:).md)
