Sophie

Sophie

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

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.ispixelsimilar.html">ImagickPixel::isPixelSimilar</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="imagickpixel.setcolor.html">ImagickPixel::setColor</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.issimilar" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ImagickPixel::isSimilar</h1>
  <p class="verinfo">(PECL imagick 2.0.0)</p><p class="refpurpose"><span class="refname">ImagickPixel::isSimilar</span> &mdash; <span class="dc-title">Check the distance between this color and another</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-imagickpixel.issimilar-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>ImagickPixel::isSimilar</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>

  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">This function is
currently not documented; only its argument list is available.
</p></div>
  <p class="para">
   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.
   Deprecated in favour of <a href="imagickpixel.ispixelsimilar.html" class="link">ImagickPixel::isPixelSimilar()</a>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-imagickpixel.issimilar-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.issimilar-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.ispixelsimilar.html">ImagickPixel::isPixelSimilar</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="imagickpixel.setcolor.html">ImagickPixel::setColor</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>