<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vImage_CGImageFormat/bitsPerPixel",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@S@vImage_CGImageFormat@FI@bitsPerPixel"
  },
  "title" : "bitsPerPixel"
}
-->

# bitsPerPixel

The number of bits that represents one pixel.

```
var bitsPerPixel: UInt32
```

## 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`](/documentation/Accelerate/vImage_CGImageFormat/bitmapInfo).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)