One Logo Pool Ball
UIKit · IOS API REFERENCE

UIGraphicsImageRenderer

class · iOS 10.0+ · SDK 27.1

class UIGraphicsImageRenderer

Members (6)

method · iOS 10.0+

jpegData

TypeScript
jpegData(compressionQuality: number, actions: ((arg0: UIGraphicsImageRendererContext) => void)): ArrayBuffer
Swift declaration
func jpegData(withCompressionQuality compressionQuality: CGFloat, actions: (UIGraphicsImageRendererContext) -> Void) -> Data
method · iOS 10.0+

pngData

TypeScript
pngData(actions: ((arg0: UIGraphicsImageRendererContext) => void)): ArrayBuffer
Swift declaration
func pngData(actions: (UIGraphicsImageRendererContext) -> Void) -> Data
method · iOS 10.0+

image

TypeScript
image(actions: ((arg0: UIGraphicsImageRendererContext) => void)): UIImage
Swift declaration
func image(actions: (UIGraphicsImageRendererContext) -> Void) -> UIImage
init · iOS 10.0+

init

TypeScript
static initBoundsFormat(bounds: { x: number; y: number; width: number; height: number }, format: UIGraphicsImageRendererFormat): UIGraphicsImageRenderer
Swift declaration
init(bounds: CGRect, format: UIGraphicsImageRendererFormat)
init · iOS 10.0+

init

TypeScript
static initSize(size: { width: number; height: number }): UIGraphicsImageRenderer
Swift declaration
convenience init(size: CGSize)
init · iOS 10.0+

init

TypeScript
static initSizeFormat(size: { width: number; height: number }, format: UIGraphicsImageRendererFormat): UIGraphicsImageRenderer
Swift declaration
init(size: CGSize, format: UIGraphicsImageRendererFormat)

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

UIGraphicsImageRenderer.init()

inherited init: cannot prove legal (class declares 3 custom initializers)

All UIKit types →