Function

CGColorSpaceGetColorTableCount

Returns the number of entries in the color table of an indexed color space.

Declaration

size_t CGColorSpaceGetColorTableCount(CGColorSpaceRef space);

Parameters

space

A color space object for an indexed color space.

Return Value

The number of entries in the color table of the space parameter if the color space is an indexed color space; otherwise, returns 0.

See Also

Getting Information About Color Spaces

CGColorSpaceCopyICCProfile

Returns a copy of the ICC profile of the provided color space.

Deprecated
CGColorSpaceCopyICCData

Returns a copy of the ICC profile data of the provided color space.

CGColorSpaceSupportsOutput

Returns a Boolean indicating whether the color space can be used as a destination color space.

CGColorSpaceGetNumberOfComponents

Returns the number of color components in a color space.

CGColorSpaceGetTypeID

Returns the Core Foundation type identifier for Quartz color spaces.

CGColorSpaceGetModel

Returns the color space model of the provided color space.

CGColorSpaceIsWideGamutRGB

Returns whether the RGB color space covers a significant portion of the NTSC color gamut.

CGColorSpaceGetBaseColorSpace

Returns the base color space of a pattern or indexed color space.

CGColorSpaceGetColorTable

Copies the entries in the color table of an indexed color space.

CGColorSpaceCopyName

Returns the name used to create the specified color space.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software