Function

CGContextDrawLayerAtPoint

Draws the contents of a CGLayer object at the specified point.

Declaration

void CGContextDrawLayerAtPoint(CGContextRef context, CGPoint point, CGLayerRef layer);

Parameters

context

The graphics context associated with the layer.

point

The location, in current user space coordinates, to use as the origin for the drawing.

layer

The layer whose contents you want to draw.

Discussion

Calling the function CGContextDrawLayerAtPoint is equivalent to calling the function CGContextDrawLayerInRect with a rectangle that has its origin at point and its size equal to the size of the layer.

See Also

Drawing Layer Content

CGContextDrawLayerInRect

Draws the contents of a layer object into the specified rectangle.

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