---
title: bitsPerPixel
framework: accelerate
role: symbol
role_heading: Instance Property
path: accelerate/vimage_cgimageformat/bitsperpixel
---

# bitsPerPixel

The number of bits that represents one pixel.

## Declaration

```swift
var bitsPerPixel: UInt32
```

## Discussion

Discussion For ARGB8888, this is 32. The number of color components derives from the color space, and the number of alpha components (zero or one) derives from the bitmapInfo.

## See Also

### Instance properties

- [bitsPerComponent](accelerate/vimage_cgimageformat/bitspercomponent.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)
