---
title: NSImageRepMatchesDevice
framework: appkit
role: symbol
role_heading: Global Variable
path: appkit/nsimagerepmatchesdevice
---

# NSImageRepMatchesDevice

A constant indicating that the value of certain attributes, such as the number of colors or bits per sample, will change to match the display device.

## Declaration

```swift
var NSImageRepMatchesDevice: Int { get }
```

## Discussion

Discussion This value can be passed in (or received back) as the value of bitsPerSample, pixelsWide, and pixelsHigh.
