Instance Property

bitsPerPixel

The number of bits needed to represent one pixel.

Declaration

var bitsPerPixel: UInt32

Discussion

For ARGB8888, this would be 32.

The number of color components is given by the colorspace and the number of alpha components (zero or one) is given by by the bitmapInfo.