Instance Property

CGContext

The underlying Core Graphics context.

Declaration

@property(nonatomic, readonly) CGContextRef CGContext;

Discussion

Use this property to gain access to the underlying Core Graphics context when you need more drawing functionality than is offered by UIKit and UIGraphicsRendererContext.

For an example of how and when to use the Core Graphics context in an image renderer, see Using Core Graphics Rendering Functions in UIGraphicsImageRenderer.

See Also

Getting the Drawing Context

format

The format used to create the associated graphics renderer.