← All docs

cairo_stroke()

Strokes the current path with the current source and clears the path.

cairo_stroke()

function cairo_stroke(mixed $context): void

Strokes the current path with the current source and clears the path.

Parameters:

  • $context (mixed)

Returns: void

Availability

  • Compiled (AOT): supported through the compiler-injected image prelude.
  • eval() (magician interpreter): not available inside eval’d code.

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

Internals

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