Function

CGColorSpaceRetain

Increments the retain count of a color space.

Declaration

CGColorSpaceRef CGColorSpaceRetain(CGColorSpaceRef space);

Parameters

cs

The Quartz color space to retain.

Return Value

The same color space you passed in as the cs parameter.

Discussion

This function is equivalent to CFRetain, except that it does not cause an error if the cs parameter is NULL.

See Also

Retaining and Releasing Color Spaces

CGColorSpaceRelease

Decrements the retain count of a 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