Contents

UIGraphicsBeginImageContext(_:)

Creates a bitmap-based graphics context and makes it the current context.

Declaration

func UIGraphicsBeginImageContext(_ size: CGSize)

Parameters

Discussion

This function is equivalent to calling the UIGraphicsBeginImageContextWithOptions(_:_:_:) function with the opaque parameter set to false and a scale factor of 1.0.

This function may be called from any thread of your app.

See Also

Image creation