Reference Ctx
Declared in Codebot.Render.Contexts.pas on line 323
Ctx returns the render context of the calling thread or throws EContextError if there is none. A render context becomes the context of the thread which creates it, and stops being its context when destroyed. TGraphicsBox creates a render context on its render thread before OnRenderStart and destroys it after OnRenderStop.
function Ctx: TRenderContext;