Instance Method

renderInContext:

Renders the layer and its sublayers into the specified context.

Declaration

- (void)renderInContext:(CGContextRef)ctx;

Parameters

ctx

The graphics context to use to render the layer.

Discussion

This method renders directly from the layer tree, ignoring any animations added to the render tree. Renders in the coordinate space of the layer.

See Also

Configuring the Layer’s Rendering Behavior

opaque

A Boolean value indicating whether the layer contains completely opaque content.

edgeAntialiasingMask

A bitmask defining how the edges of the receiver are rasterized.

- contentsAreFlipped

Returns a Boolean indicating whether the layer content is implicitly flipped when rendered.

geometryFlipped

A Boolean that indicates whether the geometry of the layer and its sublayers is flipped vertically.

drawsAsynchronously

A Boolean indicating whether drawing commands are deferred and processed asynchronously in a background thread.

shouldRasterize

A Boolean that indicates whether the layer is rendered as a bitmap before compositing. Animatable

rasterizationScale

The scale at which to rasterize content, relative to the coordinate space of the layer. Animatable

contentsFormat

A hint for the desired storage format of the layer contents.