← All docs

cairo_set_line_cap()

Selects how the ends of a stroked line are drawn.

cairo_set_line_cap()

function cairo_set_line_cap(mixed $context, int $lineCap): void

Selects how the ends of a stroked line are drawn.

Parameters:

  • $context (mixed)
  • $lineCap (int)

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_set_line_cap is implemented in the compiler, see the internals page.