---
title: bitsPerComponent
framework: accelerate
role: symbol
role_heading: Instance Property
path: accelerate/vimage_cgimageformat/bitspercomponent
---

# bitsPerComponent

The number of bits that represents one channel of data in one pixel.

## Declaration

```swift
var bitsPerComponent: UInt32
```

## Discussion

Discussion For ARGB8888, this is 8. Expected values are 1, 2, 4, 5, 8, 10, 12, 16, or 32.

## See Also

### Instance properties

- [bitsPerPixel](accelerate/vimage_cgimageformat/bitsperpixel.md)
- [colorSpace](accelerate/vimage_cgimageformat/colorspace.md)
- [bitmapInfo](accelerate/vimage_cgimageformat/bitmapinfo.md)
- [version](accelerate/vimage_cgimageformat/version.md)
- [decode](accelerate/vimage_cgimageformat/decode.md)
- [renderingIntent](accelerate/vimage_cgimageformat/renderingintent.md)
- [componentCount](accelerate/vimage_cgimageformat/componentcount.md)
