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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software