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

# UIGraphicsRendererFormat

A set of drawing attributes that represents the configuration of a graphics renderer context.

```
class UIGraphicsRendererFormat
```

## Overview

Create a [`UIGraphicsRendererFormat`](/documentation/UIKit/UIGraphicsRendererFormat) object, or one of its subclasses ([`UIGraphicsImageRendererFormat`](/documentation/UIKit/UIGraphicsImageRendererFormat) and [`UIGraphicsPDFRendererFormat`](/documentation/UIKit/UIGraphicsPDFRendererFormat)), and use it to construct a graphics renderer by providing the format object as a parameter in a [`UIGraphicsRenderer`](/documentation/UIKit/UIGraphicsRenderer) subclass intializer.

The graphics renderer uses the format object you provided to configure any context objects ([`UIGraphicsRendererContext`](/documentation/UIKit/UIGraphicsRendererContext)) it creates as part of the rendering process.

If you use a graphics renderer initializer that doesn’t require a format argument, the renderer creates a format object using the [`default()`](/documentation/UIKit/UIGraphicsRendererFormat/default()) class method.

The renderer format object contains properties that represent the immutable aspects of the renderer’s configuration. This means that repeated uses of a single graphics renderer object will always use the same format object.

## Topics

### Creating a format

[`default()`](/documentation/UIKit/UIGraphicsRendererFormat/default())

Returns a format that represents the highest fidelity that the current device supports.

[`preferred()`](/documentation/UIKit/UIGraphicsRendererFormat/preferred())

Returns the most suitable format for the main screen’s current configuration.

### Getting the bounds

[`bounds`](/documentation/UIKit/UIGraphicsRendererFormat/bounds)

The bounds of the graphics context.



---

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)