UIGraphics.EndImageContext 方法

定义

弹出当前图像上下文。

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

注解

UIKit 保留图像上下文堆栈,此方法弹出当前图像上下文,并使堆栈顶部的新上下文成为新的默认上下文。

如果当前上下文不是使用 创建的, BeginImageContextWithOptions(CGSize, Boolean, nfloat)BeginImageContext(CGSize) 此方法不执行任何操作。

适用于