略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: SWFShape::drawCurve

2024-12-20

SWFShape::drawCurve

(PHP 5 < 5.3.0, PECL ming SVN)

SWFShape::drawCurveDraws a curve (relative)

说明

SWFShape::drawCurve ( float $controldx , float $controldy , float $anchordx , float $anchordy [, float $targetdx ], float $targetdy ) : int
Warning

此函数是实验性的。此函数的表象,包括名称及其相关文档都可能在未来的 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).

参见

  • SWFShape::drawCurve()
add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/swfshape.drawcurve.php

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