UIGraphics.GetCurrentContext Method


Returns the current graphics context

public static CoreGraphics.CGContext GetCurrentContext ();
static member GetCurrentContext : unit -> CoreGraphics.CGContext



This returns the current graphics context (the context at the top of the stack). This is only valid after you have pushed a new graphics context with one of the methods in this class.

This function can only be invoked from the UI thread.

Applies to