---
title: componentCount
framework: accelerate
role: symbol
role_heading: Instance Property
path: accelerate/vimage_cgimageformat/componentcount
---

# componentCount

The number of color and alpha channels.

## Declaration

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

## See Also

### Instance properties

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