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.