---
title: UIGraphicsImageRendererContext
framework: uikit
role: symbol
role_heading: Class
path: uikit/uigraphicsimagerenderercontext
---

# UIGraphicsImageRendererContext

The drawing environment for an image renderer.

## Declaration

```swift
class UIGraphicsImageRendererContext
```

## Overview

Overview When using the UIGraphicsImageRenderer drawing methods, you must pass a block of type UIGraphicsImageRenderer.DrawingActions as an argument, which provides a UIGraphicsImageRendererContext instance as an argument. Use the context object to access high-level drawing functions and the underlying Core Graphics context. note: UIGraphicsImageRendererContext inherits much of its functionality from its abstract superclass UIGraphicsRendererContext. To learn how to use a UIGraphicsImageRendererContext object in combination with an image renderer, see Creating a graphics image renderer.

## Topics

### Getting the image

- [currentImage](uikit/uigraphicsimagerenderercontext/currentimage.md)

### Getting the image drawing actions

- [UIGraphicsImageRenderer.DrawingActions](uikit/uigraphicsimagerenderer/drawingactions.md)

## Relationships

### Inherits From

- [UIGraphicsRendererContext](uikit/uigraphicsrenderercontext.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Graphics contexts

- [UIGraphicsRenderer](uikit/uigraphicsrenderer.md)
- [UIGraphicsRendererContext](uikit/uigraphicsrenderercontext.md)
- [UIGraphicsRendererFormat](uikit/uigraphicsrendererformat.md)
- [UIGraphicsImageRenderer](uikit/uigraphicsimagerenderer.md)
- [UIGraphicsImageRendererFormat](uikit/uigraphicsimagerendererformat.md)
- [UIGraphicsPDFRenderer](uikit/uigraphicspdfrenderer.md)
- [UIGraphicsPDFRendererContext](uikit/uigraphicspdfrenderercontext.md)
- [UIGraphicsPDFRendererFormat](uikit/uigraphicspdfrendererformat.md)
