UIKit.UIGraphics.BeginImageContext Method
Pushes a new image context and makes it the current graphics context.

Syntax

public static void BeginImageContext (CoreGraphics.CGSize size)

Parameters

size
Size of the image context.

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 UIGraphics.EndImageContext() method.

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

This function can only be invoked from the UI thread.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0