function.swfshape.drawcurve.html
来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 84 行
HTML
84 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Draws a curve (relative)</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.swfshape.drawcubicto.html">SWFShape->drawCubicTo</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.swfshape.drawcurveto.html">SWFShape->drawCurveTo</a></div> <div class="up"><a href="class.swfshape.html">SWFShape</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.swfshape.drawcurve" class="refentry"> <div class="refnamediv"> <h1 class="refname">SWFShape->drawCurve</h1> <p class="verinfo">(No version information available, might be only in CVS)</p><p class="refpurpose"><span class="refname">SWFShape->drawCurve</span> — <span class="dc-title">Draws a curve (relative)</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="classsynopsis"> <div class="ooclass"><a href="class.swfshape.html" class="classname">SWFShape</a></div> <div class="methodsynopsis dc-description"> <span class="type">int</span> <span class="methodname"><b><b>drawCurve</b></b></span> ( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$controldx</tt></span> , <span class="methodparam"><span class="type">int</span> <tt class="parameter">$controldy</tt></span> , <span class="methodparam"><span class="type">int</span> <tt class="parameter">$anchordx</tt></span> , <span class="methodparam"><span class="type">int</span> <tt class="parameter">$anchordy</tt></span> [, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$targetdx</tt></span> ], <span class="methodparam"><span class="type">int</span> <tt class="parameter">$targetdy</tt></span> )</div> </div> <div class="warning"><b class="warning">Warning</b><p class="simpara">This function is<em class="emphasis">EXPERIMENTAL</em>. The behaviour of this function, its name, andsurrounding documentation may change without notice in a future release of PHP.This function should be used at your own risk.</p></div> <p class="simpara"> <b>swfshape->drawcurve()</b> draws a quadratic curve (using the current line style,set by <a href="function.swfshape.setline.html" class="function">swfshape->setline()</a>) from the current pen position to the relative position (<i><tt class="parameter">anchorx</tt></i>,<i><tt class="parameter">anchory</tt></i>) using relative control point (<i><tt class="parameter">controlx</tt></i>,<i><tt class="parameter">controly</tt></i>). That is, head towards the control point, then smoothly turn to the anchor point. </p> <p class="simpara"> With 6 parameters, it draws a cubic bezier to point (x+<i><tt class="parameter">targetdx</tt></i>, x+<i><tt class="parameter">targetdy</tt></i>) with control points (x+<i><tt class="parameter">controldx</tt></i>, y+<i><tt class="parameter">controldy</tt></i>) and (x+<i><tt class="parameter">anchordx</tt></i>, y+<i><tt class="parameter">anchordy</tt></i>). </p> </div> <div class="refsect1 seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"><a href="function.swfshape.drawcurve.html" class="xref">SWFShape->drawCurve</a></li> </ul> </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.swfshape.drawcubicto.html">SWFShape->drawCubicTo</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.swfshape.drawcurveto.html">SWFShape->drawCurveTo</a></div> <div class="up"><a href="class.swfshape.html">SWFShape</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?