One Logo Pool Ball
UIKit · IOS API REFERENCE

UIGraphicsRendererContext

class · iOS 10.0+ · SDK 27.1

class UIGraphicsRendererContext

Members (8)

method · iOS 10.0+

clip

TypeScript
clip(rect: { x: number; y: number; width: number; height: number }): void
Swift declaration
func clip(to rect: CGRect)
method · iOS 10.0+

fill

TypeScript
fill(rect: { x: number; y: number; width: number; height: number }): void
Swift declaration
func fill(_ rect: CGRect)
method · iOS 10.0+

fill

TypeScript
fillBlendMode(rect: { x: number; y: number; width: number; height: number }, blendMode: _CoreGraphics_CGBlendMode): void
Swift declaration
func fill(_ rect: CGRect, blendMode: CGBlendMode)
init

init

TypeScript
static init(): UIGraphicsRendererContext
Swift declaration
init()
method · iOS 10.0+

stroke

TypeScript
stroke(rect: { x: number; y: number; width: number; height: number }): void
Swift declaration
func stroke(_ rect: CGRect)
method · iOS 10.0+

stroke

TypeScript
strokeBlendMode(rect: { x: number; y: number; width: number; height: number }, blendMode: _CoreGraphics_CGBlendMode): void
Swift declaration
func stroke(_ rect: CGRect, blendMode: CGBlendMode)
get · iOS 10.0+

cgContext

TypeScript
get cgContext(): _CoreGraphics_CGContext
Swift declaration
var cgContext: CGContext { get }
get · iOS 10.0+

format

TypeScript
get format(): UIGraphicsRendererFormat
Swift declaration
var format: UIGraphicsRendererFormat { get }

Skipped declarations

No declarations were skipped in this snapshot.

All UIKit types →