Contents

CGColorRetain

Increments the retain count of a color.

Declaration

extern CGColorRef CGColorRetain(CGColorRef color);

Parameters

  • color:

    The color to retain.

Return Value

The same color you passed in as the color parameter.

Discussion

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

See Also

Retaining and Releasing Color Objects