UIGraphics.BeginImageContextWithOptions(CGSize, Boolean, nfloat) Method

Definition

Pushes a new image context and makes it the current graphics context.

public static void BeginImageContextWithOptions (CoreGraphics.CGSize size, bool opaque, nfloat scale);
static member BeginImageContextWithOptions : CoreGraphics.CGSize * bool * nfloat -> unit

Parameters

size
CGSize
opaque
Boolean
scale
nfloat

Remarks

UIKit keeps a stack of image context, this method creates a new image context, makes it the default and places it at the top of the graphic context stacks.

To restore the previous graphics context, call the EndImageContext() method.

You can get the current context by calling the GetImageFromCurrentImageContext() method.

Developers can call this method from any thread.

Applies to