phpday 2027 - Call for Papers

ps_curveto

(PECL ps >= 1.1.0)

ps_curveto — 曲線を描く

説明

function ps_curveto(
    resource $psdoc,
    float $x1,
    float $y1,
    float $x2,
    float $y2,
    float $x3,
    float $y3
): bool

現在のパスに対して、3 つの制御点を指定して 3 次ベジエ曲線を追加します。

パラメータ

psdoc

ps_new() が返す、postscript ファイルのリソース ID。

x1

最初の制御点の x 座標。

y1

最初の制御点の y 座標。

x2

2 番目の制御点の x 座標。

y2

2 番目の制御点の y 座標。

x3

3 番目の制御点の x 座標。

y3

3 番目の制御点の y 座標。

戻り値

成功した場合に true を、失敗した場合に false を返します。

参考

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top