⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 function.printer-create-pen.html

📁 php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Create a new pen</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.printer-create-font.html">printer_create_font</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.printer-delete-brush.html">printer_delete_brush</a></div> <div class="up"><a href="ref.printer.html">Printer Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.printer-create-pen" class="refentry"> <div class="refnamediv">  <h1 class="refname">printer_create_pen</h1>  <p class="verinfo">(No version information available, might be only in CVS)</p><p class="refpurpose"><span class="refname">printer_create_pen</span> &mdash; <span class="dc-title">Create a new pen</span></p> </div>  <div class="refsect1 description">  <h3 class="title">Description</h3>  <div class="methodsynopsis dc-description">   <span class="type">resource</span> <span class="methodname"><b><b>printer_create_pen</b></b></span>    ( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$style</tt></span>   , <span class="methodparam"><span class="type">int</span> <tt class="parameter">$width</tt></span>   , <span class="methodparam"><span class="type">string</span> <tt class="parameter">$color</tt></span>   )</div>  <p class="para rdfs-comment">   The function creates a new pen and returns a handle to it. A pen is   used to draw lines and curves. For an example see   <a href="function.printer-select-pen.html" class="function">printer_select_pen()</a>.  </p> </div> <div class="refsect1 parameters">  <h3 class="title">Parameters</h3>  <p class="para">   <dl>    <dt>     <span class="term"><i><tt class="parameter">style</tt></i></span>     <dd>      <p class="para">       <i><tt class="parameter">style</tt></i> must be one of the following constants:       <ul class="itemizedlist">        <li class="listitem">         <span class="simpara">          <b><tt>PRINTER_PEN_SOLID</tt></b>:          creates a solid pen.         </span>        </li>        <li class="listitem">         <span class="simpara">          <b><tt>PRINTER_PEN_DASH</tt></b>:          creates a dashed pen.         </span>        </li>        <li class="listitem">         <span class="simpara">          <b><tt>PRINTER_PEN_DOT</tt></b>:          creates a dotted pen.         </span>        </li>        <li class="listitem">         <span class="simpara">          <b><tt>PRINTER_PEN_DASHDOT</tt></b>:          creates a pen with dashes and dots.         </span>        </li>        <li class="listitem">         <span class="simpara">          <b><tt>PRINTER_PEN_DASHDOTDOT</tt></b>:          creates a pen with dashes and double dots.         </span>        </li>        <li class="listitem">         <span class="simpara">          <b><tt>PRINTER_PEN_INVISIBLE</tt></b>:          creates an invisible pen.         </span>        </li>       </ul>      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">width</tt></i></span>     <dd>      <p class="para">       <i><tt class="parameter">width</tt></i> specifies the width of the pen.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">color</tt></i></span>     <dd>      <p class="para">       <i><tt class="parameter">color</tt></i> must be a color in RGB hex format, i.e.        &quot;<i>000000</i>&quot; for black.      </p>     </dd>    </dt>   </dl>  </p> </div> <div class="refsect1 returnvalues">  <h3 class="title">Return Values</h3>  <p class="para">   Returns a pen handle or <b><tt>FALSE</tt></b> on error.  </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.printer-create-font.html">printer_create_font</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.printer-delete-brush.html">printer_delete_brush</a></div> <div class="up"><a href="ref.printer.html">Printer Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -