Instance Method

initWithBounds:

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

Declaration

- (instancetype)initWithBounds:(CGRect)bounds;

Parameters

bounds

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

Return Value

An initialized graphics renderer.

Discussion

Use this initializer to create a graphics renderer that operates on Core Graphics contexts with the specified bounds. This initializer uses the defaultFormat static method on UIGraphicsRendererFormat to create the renderer's format, thereby selecting parameters that are the most appropriate for the current device.

See Also

Initializing a Graphics Renderer

- initWithBounds:format:

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