Function

CGLayerGetSize

Returns the width and height of a layer object.

Declaration

CGSize CGLayerGetSize(CGLayerRef layer);

Parameters

layer

The layer whose width and height you want to obtain.

Return Value

The width and height of the layer, in default user space coordinates.

See Also

Getting Layer Information

CGLayerGetContext

Returns the graphics context associated with a layer object.