Instance Property

bitsPerPixel

Returns the bits per pixel for the specified window depth.

Declaration

var bitsPerPixel: Int { get }

Discussion

Returns the number of bits per pixel for the window depth specified by depth.

See Also

Working with Window Depths

var bitsPerSample: Int

Returns the bits per sample for the specified window depth.

var colorSpaceName: NSColorSpaceName?

Returns the name of the color space corresponding to the passed window depth.

var numberOfColorComponents: Int

Returns the number of color components in the specified color space.

var isPlanar: Bool

Returns whether the specified window depth is planar.