downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

SWFShape->drawCurveTo> <SWFShape->drawCubicTo
Last updated: Fri, 13 Nov 2009

view this page in

SWFShape->drawCurve

(PHP 4 >= 4.0.5)

SWFShape->drawCurve曲線を描く (相対座標)

説明

int drawCurve ( float $controldx , float $controldy , float $anchordx , float $anchordy [, float $targetdx ], float $targetdy )
警告

この関数は、 実験的 なものです。この関数の動作・ 名前・その他ドキュメントに書かれている事項は、予告なく、将来的な PHP のリリースにおいて変更される可能性があります。 この関数は自己責任で使用してください。

swfshape->drawcurve() は、 (swfshape->setline() で設定した現在の線スタイルを 使用して) 現在のペンの位置から相対座標 (anchorx ,anchory ) まで 制御点 (controlx ,controly ) を使用して 2 次曲線を描きます。つまり、制御点にまず向かった後で、 anchor 点までなめらかに戻ってくるということです。

6 つのパラメータを使用すると、点 (x+targetdx , x+targetdy ) に向かって 制御点 (x+controldx , y+controldy ) および (x+anchordx , y+anchordy ) を使用して 3 次ベジエ曲線を描きます。



add a note add a note User Contributed Notes
SWFShape->drawCurve
There are no user contributed notes for this page.

SWFShape->drawCurveTo> <SWFShape->drawCubicTo
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites