mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-04-25 17:48:05 +02:00
80d130e6c8
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@256137 c90b9560-bf6c-de11-be94-00142212c4b1
133 lines
3.9 KiB
XML
Executable File
133 lines
3.9 KiB
XML
Executable File
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.11 $ -->
|
|
<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready -->
|
|
<!-- Reviewed: yes -->
|
|
|
|
<refentry xml:id="function.printer-create-brush" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>printer_create_brush</refname>
|
|
<refpurpose>Crée une nouvelle brosse</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>
|
|
Crée une nouvelle brosse et retourne une ressource de brosse. Une
|
|
brosse est utilisée pour remplir des surfaces. Pour un exemple,
|
|
voyez la fonction <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> doit prendre la valeur de l'une des constantes
|
|
suivantes :
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
<constant>PRINTER_BRUSH_SOLID</constant> :
|
|
crée une brosse avec une couleur pleine.
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<constant>PRINTER_BRUSH_DIAGONAL</constant> :
|
|
crée une brosse avec une direction diagonale ascendante, de droite à gauche ( / ).
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<constant>PRINTER_BRUSH_CROSS</constant>:
|
|
crée une brosse avec une forme de croix ( + ).
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<constant>PRINTER_BRUSH_DIAGCROSS</constant>:
|
|
crée une brosse avec une forme de croix diagonale ( x ).
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<constant>PRINTER_BRUSH_FDIAGONAL</constant>:
|
|
crée une brosse avec une direction diagonale ascendante, de gauche à droite ( \ ).
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<constant>PRINTER_BRUSH_HORIZONTAL</constant>:
|
|
crée une brosse avec une direction horizontale ( - ).
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<constant>PRINTER_BRUSH_VERTICAL</constant>:
|
|
crée une brosse avec une direction horizontale ( | ).
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<constant>PRINTER_BRUSH_CUSTOM</constant>:
|
|
crée une brosse à partir d'un fichier BMP. Le second paramètre
|
|
est alors utilisé pour spécifier le chemin jusqu'au fichier BMP, au lieu
|
|
d'être une couleur.
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>color</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
<parameter>color</parameter> doit être une couleur au format RGB hexadécimal,
|
|
c'est à dire "<literal>000000</literal>" pour le noir.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Retourne un gestionnaire de brosse, ou &false;
|
|
si une erreur survient.
|
|
</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
|
|
--> |