1
0
mirror of https://github.com/php/doc-it.git synced 2026-04-29 02:03:11 +02:00
Files
archived-doc-it/reference/printer/functions/printer-draw-text.xml
T
Andrioli Darvin 68c5486309 Italian translation
git-svn-id: https://svn.php.net/repository/phpdoc/it/trunk@82363 c90b9560-bf6c-de11-be94-00142212c4b1
2002-05-15 19:29:20 +00:00

66 lines
2.1 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- EN-Revision: 1.2 Maintainer: darvina Status: ready -->
<!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 -->
<refentry id="function.printer-draw-text">
<refnamediv>
<refname>printer_draw_text</refname>
<refpurpose>Scrive un testo</refpurpose>
</refnamediv>
<refsect1>
<title>Descrizione</title>
<methodsynopsis>
<type>void</type><methodname>printer_draw_text</methodname>
<methodparam><type>resource</type><parameter>printer_handle</parameter></methodparam>
<methodparam><type>string</type><parameter>testo</parameter></methodparam>
<methodparam><type>int</type><parameter>x</parameter></methodparam>
<methodparam><type>int</type><parameter>y</parameter></methodparam>
</methodsynopsis>
<para>
La funzione scrive il <parameter>testo</parameter> alla posizione
<parameter>x</parameter>, <parameter>y</parameter> utilizzando il font
selezionato. Il parametro <parameter>printer_handle</parameter> deve indicare
un handle valido di stampante.
</para>
<example>
<title>Esempio di utilizzo di <function>printer_draw_text</function></title>
<programlisting role="php">
<![CDATA[
$handle = printer_open();
printer_start_doc($handle, "My Document");
printer_start_page($handle);
$font = printer_create_font("Arial",72,48,400,false,false,false,0);
printer_select_font($handle, $font);
printer_draw_text($handle, "test", 10, 10);
printer_delete_font($font);
printer_end_page($handle);
printer_end_doc($handle);
printer_close($handle);
]]>
</programlisting>
</example>
</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
-->