uTools-Manuals/docs/php/imagesetbrush.html
2019-04-28 19:00:34 +08:00

45 lines
2.5 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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.imagesetbrush" class="refentry">
<div class="refnamediv">
<h1 class="refname">imagesetbrush</h1>
<p class="verinfo">(PHP 4 &gt;= 4.0.6, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">imagesetbrush</span> &mdash; <span class="dc-title">设定画线用的画笔图像</span></p>
</div>
<div class="refsect1 unknown-seealsp" id="refsect1-function.imagesetbrush-unknown-seealsp">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>imagesetbrush</strong></span>
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$image</code></span>
, <span class="methodparam"><span class="type">resource</span> <code class="parameter">$brush</code></span>
) : <span class="type">bool</span></div>
<p class="para rdfs-comment">
当用特殊的颜色 <em>IMG_COLOR_BRUSHED</em>
<em>IMG_COLOR_STYLEDBRUSHED</em>
绘画时,<span class="function"><strong>imagesetbrush()</strong></span>
设定了所有画线的函数(例如 <span class="function"><a href="imageline.html" class="function">imageline()</a></span>
<span class="function"><a href="imagepolygon.html" class="function">imagepolygon()</a></span>)所使用的画笔图像。【注:使用画笔图像,所画的线是由
<code class="parameter">brush</code> 所代表的图像构成的。请参考并尝试运行
<span class="function"><a href="imagesetstyle.html" class="function">imagesetstyle()</a></span> 中的例子以帮助理解。】
</p>
<blockquote class="note"><p><strong class="note">Note</strong>:
<p class="para">
使用完画笔图像后不需要采取什么特殊动作。但如果销毁了画笔图像,在设定一个新的画笔图像之前不能使用
<em>IMG_COLOR_BRUSHED</em>
<em>IMG_COLOR_STYLEDBRUSHED</em>
</p>
</p></blockquote>
<blockquote class="note"><p><strong class="note">Note</strong>:
<p class="para">
本函数是 PHP 4.0.6 添加的。
</p>
</p></blockquote>
</div>
</div></div></div></body></html>