← All docs

cairo_create()

Creates a drawing context for a surface.

cairo_create()

function cairo_create(mixed $surface): mixed

Creates a drawing context for a surface.

Parameters:

  • $surface (mixed)

Returns: mixed

Availability

Compiled (AOT)Magician (eval)
AvailableNot available yet

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how cairo_create is implemented in the compiler, see the internals page.