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

# init(bounds:format:)

Creates an image renderer with the specified bounds and format.

## Declaration

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

## Parameters

- `bounds`: The bounds of the image context the image renderer creates and subsequently draws upon. Specify values in points in the Core Graphics coordinate space.
- `format`: A doc://com.apple.uikit/documentation/UIKit/UIGraphicsImageRendererFormat object that encapsulates the format used to create the renderer context.

## Return Value

Return Value An initialized image renderer.

## Discussion

Discussion Use this initializer to create an image renderer when you want to override the default format for the current device.

## See Also

### Initializing an image renderer

- [init(size:)](uikit/uigraphicsimagerenderer/init(size:).md)
- [init(size:format:)](uikit/uigraphicsimagerenderer/init(size:format:).md)
