function.swfshape.drawcurveto.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 83 行

HTML
83
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Draws a curve</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.drawcurve.html">SWFShape->drawCurve</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.swfshape.drawglyph.html">SWFShape->drawGlyph</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.drawcurveto" class="refentry"> <div class="refnamediv">  <h1 class="refname">SWFShape-&gt;drawCurveTo</h1>  <p class="verinfo">(No version information available, might be only in CVS)</p><p class="refpurpose"><span class="refname">SWFShape-&gt;drawCurveTo</span> &mdash; <span class="dc-title">Draws a curve</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>drawCurveTo</b></b></span>     ( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$controlx</tt></span>    , <span class="methodparam"><span class="type">int</span> <tt class="parameter">$controly</tt></span>    , <span class="methodparam"><span class="type">int</span> <tt class="parameter">$anchorx</tt></span>    , <span class="methodparam"><span class="type">int</span> <tt class="parameter">$anchory</tt></span>    [, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$targetx</tt></span>    ], <span class="methodparam"><span class="type">int</span> <tt class="parameter">$targety</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->drawcurveto()</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    (<i><tt class="parameter">anchorx</tt></i>,<i><tt class="parameter">anchory</tt></i>)    using (<i><tt class="parameter">controlx</tt></i>,<i><tt class="parameter">controly</tt></i>)   as a control point. 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   (<i><tt class="parameter">targetx</tt></i>, <i><tt class="parameter">targety</tt></i>)   with control points (<i><tt class="parameter">controlx</tt></i>,   <i><tt class="parameter">controly</tt></i>) and   (<i><tt class="parameter">anchorx</tt></i>, <i><tt class="parameter">anchory</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.drawcurveto.html" class="xref">SWFShape->drawCurveTo</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.drawcurve.html">SWFShape->drawCurve</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.swfshape.drawglyph.html">SWFShape->drawGlyph</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 + -
显示快捷键?