<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIGraphicsImageRendererContext",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIGraphicsImageRendererContext"
  },
  "title" : "UIGraphicsImageRendererContext"
}
-->

# UIGraphicsImageRendererContext

The drawing environment for an image renderer.

```
class UIGraphicsImageRendererContext
```

## Overview

When using the [`UIGraphicsImageRenderer`](/documentation/UIKit/UIGraphicsImageRenderer) drawing methods, you must pass a block of type [`UIGraphicsImageRenderer.DrawingActions`](/documentation/UIKit/UIGraphicsImageRenderer/DrawingActions) as an argument, which provides a [`UIGraphicsImageRendererContext`](/documentation/UIKit/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 ``doc://com.apple.uikit/documentation/UIKit/UIGraphicsRendererContext``.

To learn how to use a `UIGraphicsImageRendererContext` object in combination with an image renderer, see [`Creating a graphics image renderer`](/documentation/UIKit/UIGraphicsImageRenderer#Creating-a-graphics-image-renderer).

## Topics

### Getting the image

[`currentImage`](/documentation/UIKit/UIGraphicsImageRendererContext/currentImage)

The current state of the drawing context, expressed as an object that manages image data in your app.

### Getting the image drawing actions

[`DrawingActions`](/documentation/UIKit/UIGraphicsImageRenderer/DrawingActions)

A closure for drawing an image.

## Relationships

### Inherits From

[`UIGraphicsRendererContext`](/documentation/UIKit/UIGraphicsRendererContext)

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)