Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<UI\Draw\Stroke::getThicknessUI\Draw\Stroke::setJoin>
^UI\Draw\StrokeLast updated: Mon, 26 Oct 2026

UI\Draw\Stroke::setCap

(UI 0.9.9)

UI\Draw\Stroke::setCap — Set Line Cap

Description

public function UI\Draw\Stroke::setCap(int $cap)

Shall set the line cap setting for this Stroke

Parameters

cap

UI\Draw\Line\Cap::Flat, UI\Draw\Line\Cap::Round, or UI\Draw\Line\Cap::Square


<UI\Draw\Stroke::getThicknessUI\Draw\Stroke::setJoin>
^UI\Draw\StrokeLast updated: Mon, 26 Oct 2026