---
title: kCGImagePropertyDepth
framework: imageio
role: symbol
role_heading: Global Variable
path: imageio/kcgimagepropertydepth
---

# kCGImagePropertyDepth

The number of bits in the color sample of a pixel.

## Declaration

```swift
let kCGImagePropertyDepth: CFString
```

## Discussion

Discussion The value of this key is a CFNumber.

## See Also

### Pixel Information

- [kCGImagePropertyPixelFormat](imageio/kcgimagepropertypixelformat.md)
- [kCGImagePropertyPixelWidth](imageio/kcgimagepropertypixelwidth.md)
- [kCGImagePropertyPixelHeight](imageio/kcgimagepropertypixelheight.md)
- [kCGImagePropertyDPIHeight](imageio/kcgimagepropertydpiheight.md)
- [kCGImagePropertyDPIWidth](imageio/kcgimagepropertydpiwidth.md)
