<!--
{
  "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/UIGraphicsImageRendererFormat",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIGraphicsImageRendererFormat"
  },
  "title" : "UIGraphicsImageRendererFormat"
}
-->

# UIGraphicsImageRendererFormat

A set of drawing attributes that represents the configuration of an image renderer context.

```
class UIGraphicsImageRendererFormat
```

## Overview

Use an instance of [`UIGraphicsImageRendererFormat`](/documentation/UIKit/UIGraphicsImageRendererFormat) to initialize a [`UIGraphicsImageRenderer`](/documentation/UIKit/UIGraphicsImageRenderer) object with nondefault attributes.

The image renderer format object contains properties that determine the attributes of the underlying Core Graphics contexts that the image renderer creates. Use the [`default()`](/documentation/UIKit/UIGraphicsRendererFormat/default()) class method to create an image renderer format instance optimized for the current device.

## Topics

### Creating the renderer

[`init(for:)`](/documentation/UIKit/UIGraphicsImageRendererFormat/init(for:))

Creates the most suitable format for rendering on a device with the specified traits.

### Configuring the renderer attributes

[`opaque`](/documentation/UIKit/UIGraphicsImageRendererFormat/opaque)

A Boolean value that indicates whether the underlying Core Graphics context has an alpha channel.

[`scale`](/documentation/UIKit/UIGraphicsImageRendererFormat/scale)

The display scale of the image renderer context.

[`preferredRange`](/documentation/UIKit/UIGraphicsImageRendererFormat/preferredRange)

The preferred color range of the image renderer context.

[`UIGraphicsImageRendererFormat.Range`](/documentation/UIKit/UIGraphicsImageRendererFormat/Range)

Constants that specify the color range of the image renderer context.

[`prefersExtendedRange`](/documentation/UIKit/UIGraphicsImageRendererFormat/prefersExtendedRange)

A Boolean value that specifies whether the bitmap context uses extended color.



---

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)