Begin Image Context(CGSize) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Pushes a new image context and makes it the current graphics context.
public static void BeginImageContext (CoreGraphics.CGSize size);
static member BeginImageContext : CoreGraphics.CGSize -> unit
Size of the image context.
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.
This function can only be invoked from the UI thread.