---
title: "init(bounds:format:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uigraphicsrenderer/init(bounds:format:)"
---

# init(bounds:format:)

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

## Declaration

```swift
init(bounds: CGRect, format: UIGraphicsRendererFormat)
```

## Parameters

- `bounds`: The bounds of the Core Graphics context available to the renderer, with values measured in points.
- `format`: The format applied to the renderer’s context. This object is an instance of the subclass of doc://com.apple.uikit/documentation/UIKit/UIGraphicsRendererFormat appropriate for the concrete subclass of UIGraphicsRenderer you are using.

## Return Value

Return Value An initialized graphics renderer.

## Discussion

Discussion 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

- [init(bounds:)](uikit/uigraphicsrenderer/init(bounds:).md)
