Function

NSNumberOfColorComponents

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

Declaration

NSInteger NSNumberOfColorComponents(NSColorSpaceName colorSpaceName);

Discussion

Returns the number of color components in the color space whose name is provided by colorSpaceName.

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.

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.

NSPlanarFromDepth

Returns whether the specified window depth is planar.