---
title: bitsPerSample
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nsdevicedescriptionkey/bitspersample
---

# bitsPerSample

The corresponding value is an NSNumber object containing an integer that gives the bit depth of the window’s raster image (2-bit, 8-bit, and so forth).

## Declaration

```swift
static let bitsPerSample: NSDeviceDescriptionKey
```

## See Also

### Type Properties

- [colorSpaceName](appkit/nsdevicedescriptionkey/colorspacename.md)
- [isPrinter](appkit/nsdevicedescriptionkey/isprinter.md)
- [isScreen](appkit/nsdevicedescriptionkey/isscreen.md)
- [resolution](appkit/nsdevicedescriptionkey/resolution.md)
- [size](appkit/nsdevicedescriptionkey/size.md)
