Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 8131

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>Check the distance between this color and another</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="imagickpixel.gethsl.html">ImagickPixel::getHSL</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="imagickpixel.issimilar.html">ImagickPixel::isSimilar</a></div>
 <div class="up"><a href="class.imagickpixel.html">ImagickPixel</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="imagickpixel.ispixelsimilar" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ImagickPixel::isPixelSimilar</h1>
  <p class="verinfo">(No version information available, might only be in SVN)</p><p class="refpurpose"><span class="refname">ImagickPixel::isPixelSimilar</span> &mdash; <span class="dc-title">Check the distance between this color and another</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-imagickpixel.ispixelsimilar-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>ImagickPixel::isPixelSimilar</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.imagickpixel.html" class="type ImagickPixel">ImagickPixel</a></span> <code class="parameter">$color</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$fuzz</code></span>
   )</div>

  <p class="para rdfs-comment">
   Checks the distance between the color described by this ImagickPixel
   object and that of the provided object, by plotting their RGB values
   on the color cube. If the distance between the two points is less than
   the fuzz value given, the colors are similar.
   This method replaces <a href="imagickpixel.issimilar.html" class="link">ImagickPixel::isSimilar()</a>
   and correctly normalises the fuzz value to ImageMagick QuantumRange.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-imagickpixel.ispixelsimilar-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

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

      <p class="para">
       The ImagickPixel object to compare this object against.
      </p>
     </dd>

    </dt>

    <dt>

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

      <p class="para">
       The maximum distance within which to consider these colors as similar.
       The theoretical maximum for this value is the square root of three
       (1.732).
      </p>
     </dd>

    </dt>

   </dl>

  </p>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-imagickpixel.ispixelsimilar-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns <strong><code>TRUE</code></strong> on success.
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="imagickpixel.gethsl.html">ImagickPixel::getHSL</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="imagickpixel.issimilar.html">ImagickPixel::isSimilar</a></div>
 <div class="up"><a href="class.imagickpixel.html">ImagickPixel</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>