略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: UI\Draw\Stroke::__construct

2024-12-21

UI\Draw\Stroke::__construct

(UI 0.9.9)

UI\Draw\Stroke::__constructConstruct a new Stroke

说明

public UI\Draw\Stroke::__construct(
    int $cap = UI\Draw\Line\Cap::Flat,
    int $join = UI\Draw\Line\Join::Miter,
    float $thickness = 1,
    float $miterLimit = 10
)

Shall construct a new Stroke

参数

cap

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

join

UI\Draw\Line\Join::Miter, UI\Draw\Line\Join::Round, or UI\Draw\Line\Join::Bevel

thickness

The thickness of the stroke

miterLimit

Miter limit (default is sensible for all supported platforms)

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/ui-draw-stroke.construct.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3