mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-28 14:58:55 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@237302 c90b9560-bf6c-de11-be94-00142212c4b1
127 lines
3.6 KiB
XML
127 lines
3.6 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.5 $ -->
|
|
<refentry id="function.printer-create-brush">
|
|
<refnamediv>
|
|
<refname>printer_create_brush</refname>
|
|
<refpurpose>Create a new brush</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>resource</type><methodname>printer_create_brush</methodname>
|
|
<methodparam><type>int</type><parameter>style</parameter></methodparam>
|
|
<methodparam><type>string</type><parameter>color</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
The function creates a new brush and returns a handle to it. A brush is
|
|
used to fill shapes. For an example see
|
|
<function>printer_select_brush</function>.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>style</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
<parameter>style</parameter> must be one of the following constants:
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
<constant>PRINTER_BRUSH_SOLID</constant>:
|
|
creates a brush with a solid color.
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<constant>PRINTER_BRUSH_DIAGONAL</constant>:
|
|
creates a brush with a 45-degree upward left-to-right hatch ( / ).
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<constant>PRINTER_BRUSH_CROSS</constant>:
|
|
creates a brush with a cross hatch ( + ).
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<constant>PRINTER_BRUSH_DIAGCROSS</constant>:
|
|
creates a brush with a 45 cross hatch ( x ).
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<constant>PRINTER_BRUSH_FDIAGONAL</constant>:
|
|
creates a brush with a 45-degree downward left-to-right hatch ( \ ).
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<constant>PRINTER_BRUSH_HORIZONTAL</constant>:
|
|
creates a brush with a horizontal hatch ( - ).
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<constant>PRINTER_BRUSH_VERTICAL</constant>:
|
|
creates a brush with a vertical hatch ( | ).
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<constant>PRINTER_BRUSH_CUSTOM</constant>:
|
|
creates a custom brush from an BMP file. The second parameter
|
|
is used to specify the BMP instead of the RGB color code.
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>color</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
<parameter>color</parameter> must be a color in RGB hex format, i.e.
|
|
"<literal>000000</literal>" for black.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Returns a brush handle or &false; on error.
|
|
</para>
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|