Instance Property


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


@property CGFloat rasterizationScale;


When the value in the shouldRasterize property is YES, the layer uses this property to determine whether to scale the rasterized content (and by how much). The default value of this property is 1.0, which indicates that the layer should be rasterized at its current size. Larger values magnify the content and smaller values shrink it.

See Also

Configuring the Layer’s Rendering Behavior


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


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.


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


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


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


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

- renderInContext:

Renders the layer and its sublayers into the specified context.