UIGraphics.EndImageContext Method

Definition

Pops the current image context.

public static void EndImageContext();
static member EndImageContext : unit -> unit

Remarks

UIKit keeps a stack of image contexts. This method pops the current image context, and makes the new context at the top of the stack the new default context.

If the current context was not created using BeginImageContextWithOptions(CGSize, Boolean, NFloat) or BeginImageContext(CGSize), this method does nothing.

Applies to