Function

CGContextRetain

Increments the retain count of a graphics context.

Declaration

CGContextRef CGContextRetain(CGContextRef c);

Parameters

c

The graphics context to retain.

Return Value

The same graphics context you passed in as the context parameter.

Discussion

This function is equivalent to CFRetain, except it does not cause an error if c is NULL.

See Also

Managing Graphics Contexts

CGContextFlush

Forces all pending drawing operations in a window context to be rendered immediately to the destination device.

CGContextGetTypeID

Returns the type identifier for a graphics context.

CGContextRelease

Decrements the retain count of a graphics context.

CGContextSynchronize

Marks a window context for update.