Function

NSBitsPerPixelFromDepth

Returns the bits per pixel for the specified window depth.

Declaration

NSInteger NSBitsPerPixelFromDepth(NSWindowDepth depth);

Discussion

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

See Also

Working with Window Depths

NSAvailableWindowDepths

Returns the available window depth values.

NSBestDepth

Attempts to return a window depth adequate for the specified parameters.

NSBitsPerSampleFromDepth

Returns the bits per sample for the specified window depth.

NSColorSpaceFromDepth

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

NSNumberOfColorComponents

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

NSPlanarFromDepth

Returns whether the specified window depth is planar.