Function

CGImageRetain

Increments the retain count of a bitmap image.

Declaration

CGImageRef CGImageRetain(CGImageRef image);

Parameters

image

The image to retain.

Return Value

The same image you passed in as the image parameter.

Discussion

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

See Also

Retaining and Releasing Images

CGImageRelease

Decrements the retain count of a bitmap image.