<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.imagickdraw.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'imagickdraw.pathcurvetoquadraticbeziersmoothrelative.php',
    1 => 'ImagickDraw::pathCurveToQuadraticBezierSmoothRelative',
    2 => 'Draws a quadratic Bezier curve',
  ),
  'up' => 
  array (
    0 => 'class.imagickdraw.php',
    1 => 'ImagickDraw',
  ),
  'prev' => 
  array (
    0 => 'imagickdraw.pathcurvetoquadraticbeziersmoothabsolute.php',
    1 => 'ImagickDraw::pathCurveToQuadraticBezierSmoothAbsolute',
  ),
  'next' => 
  array (
    0 => 'imagickdraw.pathcurvetorelative.php',
    1 => 'ImagickDraw::pathCurveToRelative',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/imagick/imagickdraw/pathcurvetoquadraticbeziersmoothrelative.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="imagickdraw.pathcurvetoquadraticbeziersmoothrelative" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ImagickDraw::pathCurveToQuadraticBezierSmoothRelative</h1>
  <p class="verinfo">(PECL imagick 2, PECL imagick 3)</p><p class="refpurpose"><span class="refname">ImagickDraw::pathCurveToQuadraticBezierSmoothRelative</span> &mdash; <span class="dc-title">Draws a quadratic Bezier curve</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-imagickdraw.pathcurvetoquadraticbeziersmoothrelative-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>ImagickDraw::pathCurveToQuadraticBezierSmoothRelative</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.float.php" class="type float">float</a></span> <code class="parameter">$x</code></span>, <span class="methodparam"><span class="type"><a href="language.types.float.php" class="type float">float</a></span> <code class="parameter">$y</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <div class="warning"><strong class="warning">Avviso</strong><p class="simpara">Questa funzione, al momento
non è documentata; è disponibile soltanto la lista degli argomenti.
</p></div>
  <p class="para">
   Draws a quadratic Bezier curve (using relative coordinates) from the
   current point to (x, y). The control point is assumed to be the reflection
   of the control point on the previous command relative to the current point.
   (If there is no previous command or if the previous command was not a
   DrawPathCurveToQuadraticBezierAbsolute, 
   DrawPathCurveToQuadraticBezierRelative, 
   DrawPathCurveToQuadraticBezierSmoothAbsolut or 
   DrawPathCurveToQuadraticBezierSmoothRelative, assume the control point is
   coincident with the current point). At the end of the command, the new
   current point becomes the final (x, y) coordinate pair used in the
   polybezier.
  </p>
  
  <p class="para">
   This function cannot be used to continue a cubic Bezier curve smoothly. It can only continue from a quadratic curve smoothly.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-imagickdraw.pathcurvetoquadraticbeziersmoothrelative-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">x</code></dt>
     <dd>
      <p class="para">
       ending x coordinate
      </p>
     </dd>
    
    
     <dt><code class="parameter">y</code></dt>
     <dd>
      <p class="para">
       ending y coordinate
      </p>
     </dd>
    
   </dl>
  </p>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-imagickdraw.pathcurvetoquadraticbeziersmoothrelative-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="para">
   Nessun valore viene restituito.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-imagickdraw.pathcurvetoquadraticbeziersmoothrelative-examples">
  <h3 class="title">Esempi</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Example #1 
     <span class="methodname"><strong>ImagickDraw::pathCurveToQuadraticBezierSmoothRelative()</strong></span> example
    </strong></p>
    <div class="example-contents">
     <div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$draw </span><span style="color: #007700">= new </span><span style="color: #0000BB">\ImagickDraw</span><span style="color: #007700">();<br /><br /></span><span style="color: #0000BB">$draw</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setStrokeOpacity</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$draw</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setStrokeColor</span><span style="color: #007700">(</span><span style="color: #DD0000">"black"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$draw</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setFillColor</span><span style="color: #007700">(</span><span style="color: #DD0000">"blue"</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$draw</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setStrokeWidth</span><span style="color: #007700">(</span><span style="color: #0000BB">2</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$draw</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setFontSize</span><span style="color: #007700">(</span><span style="color: #0000BB">72</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$draw</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">pathStart</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$draw</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">pathMoveToAbsolute</span><span style="color: #007700">(</span><span style="color: #0000BB">50</span><span style="color: #007700">,</span><span style="color: #0000BB">250</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// This specifies a quadratic bezier curve with the current position as the start<br />// point, the control point is the first two params, and the end point is the last two params.<br /></span><span style="color: #0000BB">$draw</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">pathCurveToQuadraticBezierAbsolute</span><span style="color: #007700">(<br />    </span><span style="color: #0000BB">150</span><span style="color: #007700">,</span><span style="color: #0000BB">50</span><span style="color: #007700">, <br />    </span><span style="color: #0000BB">250</span><span style="color: #007700">,</span><span style="color: #0000BB">250<br /></span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// This specifies a quadratic bezier curve with the current position as the start<br />// point, the control point is mirrored from the previous curves control point<br />// and the end point is defined by the x, y values.<br /></span><span style="color: #0000BB">$draw</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">pathCurveToQuadraticBezierSmoothAbsolute</span><span style="color: #007700">(<br />    </span><span style="color: #0000BB">450</span><span style="color: #007700">,</span><span style="color: #0000BB">250<br /></span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// This specifies a quadratic bezier curve with the current position as the start<br />// point, the control point is mirrored from the previous curves control point<br />// and the end point is defined relative from the current position by the x, y values.<br /></span><span style="color: #0000BB">$draw</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">pathCurveToQuadraticBezierSmoothRelative</span><span style="color: #007700">(<br />    </span><span style="color: #0000BB">200</span><span style="color: #007700">,-</span><span style="color: #0000BB">100<br /></span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$draw</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">pathFinish</span><span style="color: #007700">();<br /><br /></span><span style="color: #0000BB">$imagick </span><span style="color: #007700">= new </span><span style="color: #0000BB">\Imagick</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$imagick</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">newImage</span><span style="color: #007700">(</span><span style="color: #0000BB">700</span><span style="color: #007700">, </span><span style="color: #0000BB">500</span><span style="color: #007700">, </span><span style="color: #0000BB">$backgroundColor</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$imagick</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setImageFormat</span><span style="color: #007700">(</span><span style="color: #DD0000">"png"</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$imagick</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">drawImage</span><span style="color: #007700">(</span><span style="color: #0000BB">$draw</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">header</span><span style="color: #007700">(</span><span style="color: #DD0000">"Content-Type: image/png"</span><span style="color: #007700">);<br />echo </span><span style="color: #0000BB">$imagick</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getImageBlob</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>


</div><?php manual_footer($setup); ?>