---
title: "backingAlignedRect(_:options:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nswindow/backingalignedrect(_:options:)"
---

# backingAlignedRect(_:options:)

Returns a backing store pixel-aligned rectangle in window coordinates.

## Declaration

```swift
func backingAlignedRect(_ rect: NSRect, options: AlignmentOptions = []) -> NSRect
```

## Parameters

- `rect`: The rectangle in view coordinates.
- `options`: The alignment options. doc://com.apple.documentation/documentation/Foundation/AlignmentOptions specifies the possible values.

## Return Value

Return Value A rectangle, in window coordinates, aligned to the backing store pixels according to the specified options.

## Discussion

Discussion This method uses NSIntegralRectWithOptions(_:_:) to align the input rectangle, and produces a backing store pixel-aligned rectangle.

## See Also

### Converting Coordinates

- [backingScaleFactor](appkit/nswindow/backingscalefactor.md)
- [convertFromBacking(_:)](appkit/nswindow/convertfrombacking(_:).md)
- [convertFromScreen(_:)](appkit/nswindow/convertfromscreen(_:).md)
- [convertPointFromBacking(_:)](appkit/nswindow/convertpointfrombacking(_:).md)
- [convertPoint(fromScreen:)](appkit/nswindow/convertpoint(fromscreen:).md)
- [convertToBacking(_:)](appkit/nswindow/converttobacking(_:).md)
- [convertToScreen(_:)](appkit/nswindow/converttoscreen(_:).md)
- [convertPointToBacking(_:)](appkit/nswindow/convertpointtobacking(_:).md)
- [convertPoint(toScreen:)](appkit/nswindow/convertpoint(toscreen:).md)
