UIGraphicsGetImageFromCurrentImageContext()
Returns an image from the contents of the current bitmap-based graphics context.
Declaration
func UIGraphicsGetImageFromCurrentImageContext() -> UIImage?Return Value
A image object containing the contents of the current bitmap graphics context.
Discussion
You should call this function only when a bitmap-based graphics context is the current graphics context. If the current context is nil or was not created by a call to UIGraphicsBeginImageContext(_:), this function returns nil.
This function may be called from any thread of your app.