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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software