Sophie

Sophie

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

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>Creates a shading for later use</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.ps-shading-pattern.html">ps_shading_pattern</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.ps-shfill.html">ps_shfill</a></div>
 <div class="up"><a href="ref.ps.html">PS Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.ps-shading" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ps_shading</h1>
  <p class="verinfo">(PECL ps &gt;= 1.3.0)</p><p class="refpurpose"><span class="refname">ps_shading</span> &mdash; <span class="dc-title">Creates a shading for later use</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.ps-shading-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">int</span> <span class="methodname"><strong>ps_shading</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$psdoc</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$type</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$x0</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$y0</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$x1</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$y1</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$c1</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$c2</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$c3</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$c4</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$optlist</code></span>
   )</div>

  <p class="para rdfs-comment">
   Creates a shading, which can be used by  <span class="function"><a href="function.ps-shfill.html" class="function">ps_shfill()</a></span> or
    <span class="function"><a href="function.ps-shading-pattern.html" class="function">ps_shading_pattern()</a></span>.
  </p>
  <p class="para">
   The color of the shading can be in any color space except for
   <em>pattern</em>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ps-shading-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">psdoc</code></em></span>
     <dd>

      <p class="para">
       Resource identifier of the postscript file
       as returned by  <span class="function"><a href="function.ps-new.html" class="function">ps_new()</a></span>.
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">type</code></em></span>
     <dd>

      <p class="para">
       The type of shading can be either <em>radial</em> or
       <em>axial</em>. Each shading starts with the current fill
       color and ends with the given color values passed in the parameters
       <em><code class="parameter">c1</code></em> to <em><code class="parameter">c4</code></em>
       (see  <span class="function"><a href="function.ps-setcolor.html" class="function">ps_setcolor()</a></span> for their meaning).
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">x0, x1, y0, y1</code></em></span>
     <dd>

      <p class="para">
       The coordinates <em><code class="parameter">x0</code></em>, <em><code class="parameter">y0</code></em>,
       <em><code class="parameter">x1</code></em>, <em><code class="parameter">y1</code></em> are the start and
       end point of the shading. If the type of shading is
       <em>radial</em> the two points are the middle points of
       a starting and ending circle.
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">c1, c2, c3, c4</code></em></span>
     <dd>

      <p class="para">
       See  <span class="function"><a href="function.ps-setcolor.html" class="function">ps_setcolor()</a></span> for their meaning.
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">optlist</code></em></span>
     <dd>

      <p class="para">
       If the shading is of type <em>radial</em> the
       <em><code class="parameter">optlist</code></em> must also contain the parameters
       <em>r0</em> and <em>r1</em> with the radius of the
       start and end circle.
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ps-shading-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns the identifier of the pattern  or <strong><code>FALSE</code></strong> on failure.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.ps-shading-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"> <span class="function"><a href="function.ps-shading-pattern.html" class="function" rel="rdfs-seeAlso">ps_shading_pattern()</a> - Creates a pattern based on a shading</span></li>
    <li class="member"> <span class="function"><a href="function.ps-shfill.html" class="function" rel="rdfs-seeAlso">ps_shfill()</a> - Fills an area with a shading</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="function.ps-shading-pattern.html">ps_shading_pattern</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.ps-shfill.html">ps_shfill</a></div>
 <div class="up"><a href="ref.ps.html">PS Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>