(PHP 5 < 5.3.0, PECL ming SVN)
SWFShape::drawCurve — Draws a curve (relative)
$controldx
, float $controldy
, float $anchordx
, float $anchordy
[, float $targetdx
], float $targetdy
) : int锟剿猴拷锟斤拷锟斤拷实锟斤拷锟斤拷锟侥★拷锟剿猴拷锟斤拷锟侥憋拷锟襟,帮拷锟斤拷锟斤拷锟狡硷拷锟斤拷锟斤拷锟斤拷牡锟斤拷锟斤拷锟斤拷锟斤拷锟轿达拷锟斤拷锟� PHP 锟斤拷锟斤拷锟芥本锟斤拷未通知锟酵憋拷锟睫改★拷使锟矫憋拷锟斤拷锟斤拷锟斤拷锟斤拷锟皆碉拷 锟斤拷
swfshape::drawcurve() draws a quadratic curve
(using the current line style,set by swfshape::setline())
from the current pen position to the relative position
(anchorx
,anchory
)
using relative control point
(controlx
,controly
).
That is, head towards the control point, then smoothly turn to the
anchor point.
With 6 parameters, it draws a cubic bezier to point
(x+targetdx
, x+targetdy
)
with control points (x+controldx
,
y+controldy
) and
(x+anchordx
, y+anchordy
).