---
title: UIGraphicsImageRenderer.DrawingActions
framework: uikit
role: symbol
role_heading: Type Alias
path: uikit/uigraphicsimagerenderer/drawingactions
---

# UIGraphicsImageRenderer.DrawingActions

A closure for drawing an image.

## Declaration

```swift
typealias DrawingActions = (UIGraphicsImageRendererContext) -> Void
```

## Discussion

Discussion UIGraphicsImageDrawingActions defines a block type that takes a UIGraphicsImageRendererContext object as an argument and has no return value. You provide a block of this type as an argument to the image drawing methods on UIGraphicsImageRenderer. Your block should use the provided image renderer context to perform the drawing operations you want the renderer to execute. See Creating an image with an image renderer for an example use of a UIGraphicsImageDrawingActions block.

## See Also

### Creating images

- [image(actions:)](uikit/uigraphicsimagerenderer/image(actions:).md)
- [jpegData(withCompressionQuality:actions:)](uikit/uigraphicsimagerenderer/jpegdata(withcompressionquality:actions:).md)
- [pngData(actions:)](uikit/uigraphicsimagerenderer/pngdata(actions:).md)
