Class

UIGraphicsRendererFormat

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

Declaration

@interface UIGraphicsRendererFormat : NSObject

Overview

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

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

If you use a graphics renderer initializer that does not require a format argument, the renderer creates a format object using the defaultFormat 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 Default Format

+ defaultFormat

Returns a new format configured for the highest fidelity supported by the current device.

Getting the Bounds

bounds

The bounds of the associated graphics context.

Type Methods

+ preferredFormat

Returns a new format best suited for the main screen’s current configuration.

Relationships

Inherits From

Conforms To

See Also

Drawing Contexts

UIGraphicsRenderer

An abstract base class for creating graphics renderers.

UIGraphicsRendererContext

The base class for the drawing environments associated with graphics renderers.

UIGraphicsImageRenderer

A graphics renderer for creating Core Graphics-backed images.

UIGraphicsImageRendererContext

The drawing environment associated with an image renderer.

UIGraphicsImageRendererFormat

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

UIGraphicsPDFRenderer

A graphics renderer for creating PDFs.

UIGraphicsPDFDrawingActions

A handler block that you use to draw PDF content.

UIGraphicsPDFRendererContext

A drawing environment associated with a PDF renderer.

UIGraphicsPDFRendererFormat

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