function.imagickpixel-issimilar.html
来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 94 行
HTML
94 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Check the distance between this color and another</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.imagickpixel-gethsl.html">ImagickPixel::getHSL</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.imagickpixel-setcolor.html">ImagickPixel::setColor</a></div> <div class="up"><a href="class.imagickpixel.html">The ImagickPixel class</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.imagickpixel-issimilar" class="refentry"> <div class="refnamediv"> <h1 class="refname">ImagickPixel::isSimilar</h1> <p class="verinfo">(No version information available, might be only in CVS)</p><p class="refpurpose"><span class="refname">ImagickPixel::isSimilar</span> — <span class="dc-title">Check the distance between this color and another</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><b><b>ImagickPixel::isSimilar</b></b></span> ( <span class="methodparam"><span class="type"><a href="class.imagickpixel.html" class="type ImagickPixel">ImagickPixel</a></span> <tt class="parameter">$color</tt></span> , <span class="methodparam"><span class="type">float</span> <tt class="parameter">$fuzz</tt></span> )</div> <div class="warning"><b class="warning">Warning</b><p class="simpara">This function iscurrently 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. </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">color</tt></i></span> <dd> <p class="para"> The ImagickPixel object to compare this object against. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">fuzz</tt></i></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"> <h3 class="title">Return Values</h3> <p class="para"> Returns <b><tt>TRUE</tt></b> on success. </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.imagickpixel-gethsl.html">ImagickPixel::getHSL</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.imagickpixel-setcolor.html">ImagickPixel::setColor</a></div> <div class="up"><a href="class.imagickpixel.html">The ImagickPixel class</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?