Contents

CGPatternRetain

Increments the retain count of a Core Graphics pattern.

Declaration

extern CGPatternRef CGPatternRetain(CGPatternRef pattern);

Parameters

  • pattern:

    The pattern to retain.

Return Value

The same pattern youpassed in as the pattern parameter.

Discussion

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

See Also

Retaining and Releasing a Pattern