Function

CGContextDrawShading

Fills the clipping path of a context with the specified shading.

Declaration

void CGContextDrawShading(CGContextRef c, CGShadingRef shading);

Parameters

c

The graphics context in which to draw the shading.

shading

A shading object. The shading object is retained; upon return, you may safely release it.

Discussion

The preferred way to draw gradients is to use a CGGradient object. See CGGradient.

See Also