Contents

bitsPerComponent

Returns the number of bits allocated for a single color component of a bitmap image.

Declaration

var bitsPerComponent: Int { get }

Description

Possible values are 1, 2, 4, or 8. For example, for a 16-bit RGB(A) colorspace, the function would return a value of 4 bits per color component.

See Also

Examining an image