Function

NSBitsPerSampleFromDepth

Returns the bits per sample for the specified window depth.

Declaration

NSInteger NSBitsPerSampleFromDepth(NSWindowDepth depth);

Discussion

Returns the number of bits per sample (bits per pixel in each color component) 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.

NSBitsPerPixelFromDepth

Returns the bits per pixel 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.