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.