Instance Method


Creates a new graphics renderer with the given bounds and format.


- (instancetype)initWithBounds:(CGRect)bounds format:(UIGraphicsRendererFormat *)format;



The bounds of the Core Graphics context available to the renderer, with values measured in points.


The format applied to the renderer's context. This object is an instance of the subclass of UIGraphicsRendererFormat appropriate for the concrete subclass of UIGraphicsRenderer you are using.

Return Value

An initialized graphics renderer.


Use this initializer to create a graphics renderer when you want to override the default format for the current device.

The format instance is copied at initialization time, so you can immediately reuse the same instance to create additional renderers.

See Also

Initializing a Graphics Renderer

- initWithBounds:

Creates a new graphics renderer with the specified bounds and a default format.