Context.create

Creates a new context with all graphics state parameters set to default values and with target as a target surface.

Since 1.0

class Context
static
create

Parameters

target Surface

target surface for the context

Return Value

Type: Context

a newly allocated context. This function never returns null. If memory cannot be allocated, a special context will be returned on which status() returns CairoStatus.NO_MEMORY. If you attempt to target a surface which does not support writing (such as cairo_mime_surface_t) then a CairoStatus.WRITE_ERROR will be raised. You can use this object normally, but no drawing will be done.

Meta