CairoNode.getDrawContext

Creates a Cairo context for drawing using the surface associated to the render node.

If no surface exists yet, a surface will be created optimized for rendering to renderer.

class CairoNode
getDrawContext
()

Return Value

Type: cairo.context.Context

a Cairo context used for drawing; use cairo.global.destroy when done drawing