Function

CGColorSpaceGetColorTable

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

Declaration

void CGColorSpaceGetColorTable(CGColorSpaceRef space, uint8_t *table);

Parameters

space

A color space object for an indexed color space.

table

The array pointed to by table should be at least as large as the number of entries in the color table. On output, the array contains the table data in the same format as that passed to CGColorSpaceCreateIndexed.

Discussion

This function does nothing if the color space is not an indexed color space. To determine whether a color space is an indexed color space, call the function CGColorSpaceGetModel.

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.

CGColorSpaceGetColorTableCount

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

CGColorSpaceCopyName

Returns the name used to create the specified color space.