Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 12196

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Draws a curve</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="swfshape.drawcurve.html">SWFShape::drawCurve</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="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="swfshape.drawcurveto" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SWFShape::drawCurveTo</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.5)</p><p class="refpurpose"><span class="refname">SWFShape::drawCurveTo</span> &mdash; <span class="dc-title">Draws a curve</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-swfshape.drawcurveto-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">int</span> <span class="methodname"><strong>SWFShape::drawCurveTo</strong></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$controlx</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$controly</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$anchorx</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$anchory</code></span>
   [, <span class="methodparam"><span class="type">float</span> <code class="parameter">$targetx</code></span>
   ], <span class="methodparam"><span class="type">float</span> <code class="parameter">$targety</code></span>
   )</div>

  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">This function is
<em class="emphasis">EXPERIMENTAL</em>. The behaviour of this function, its name, and
surrounding 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">
    <span class="function"><strong>swfshape::drawcurveto()</strong></span> draws a quadratic curve 
   (using the current line style, set by  <span class="function"><a href="swfshape.setline.html" class="function">swfshape::setline()</a></span>)
   from the current pen position to 
   (<em><code class="parameter">anchorx</code></em>,<em><code class="parameter">anchory</code></em>) 
   using (<em><code class="parameter">controlx</code></em>,<em><code class="parameter">controly</code></em>)
   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
   (<em><code class="parameter">targetx</code></em>, <em><code class="parameter">targety</code></em>)
   with control points (<em><code class="parameter">controlx</code></em>,
   <em><code class="parameter">controly</code></em>) and
   (<em><code class="parameter">anchorx</code></em>, <em><code class="parameter">anchory</code></em>).
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-swfshape.drawcurveto-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"> <span class="function"><strong>SWFShape::drawCurveTo()</strong></span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="swfshape.drawcurve.html">SWFShape::drawCurve</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="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>