mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 22:06:57 +08:00
34 lines
2.1 KiB
HTML
34 lines
2.1 KiB
HTML
<!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>区域填充到指定颜色的边界为止</title>
|
||
</head>
|
||
<body class="docs"><div id="layout">
|
||
<div id="layout-content"><div id="function.imagefilltoborder" class="refentry">
|
||
<div class="refnamediv">
|
||
<h1 class="refname">imagefilltoborder</h1>
|
||
<p class="verinfo">(PHP 4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">imagefilltoborder</span> — <span class="dc-title">区域填充到指定颜色的边界为止</span></p>
|
||
|
||
</div>
|
||
<div class="refsect1 unknown-unknown-unknown-seealsr" id="refsect1-function.imagefilltoborder-unknown-unknown-unknown-seealsr">
|
||
<h3 class="title">说明</h3>
|
||
<div class="methodsynopsis dc-description">
|
||
<span class="methodname"><strong>imagefilltoborder</strong></span>
|
||
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$image</code></span>
|
||
, <span class="methodparam"><span class="type">int</span> <code class="parameter">$x</code></span>
|
||
, <span class="methodparam"><span class="type">int</span> <code class="parameter">$y</code></span>
|
||
, <span class="methodparam"><span class="type">int</span> <code class="parameter">$border</code></span>
|
||
, <span class="methodparam"><span class="type">int</span> <code class="parameter">$color</code></span>
|
||
) : <span class="type">bool</span></div>
|
||
|
||
<p class="para rdfs-comment">
|
||
<span class="function"><strong>imagefilltoborder()</strong></span> 从
|
||
<code class="parameter">x</code>,<code class="parameter">y</code>(图像左上角为
|
||
0, 0)点开始用 <code class="parameter">color</code>
|
||
颜色执行区域填充,直到碰到颜色为 <code class="parameter">border</code>
|
||
的边界为止。【注:边界内的所有颜色都会被填充。如果指定的边界色和该点颜色相同,则没有填充。如果图像中没有该边界色,则整幅图像都会被填充。】
|
||
</p>
|
||
</div>
|
||
|
||
</div></div></div></body></html> |