Increments the retain count of a color space.
SDKs
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Graphics
Declaration
CGColor Space Ref CGColorSpaceRetain(CGColor Space Ref 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
.