PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

printer_create_font> <printer_create_brush
Last updated: Fri, 18 Jul 2008

view this page in

printer_create_dc

(No version information available, might be only in CVS)

printer_create_dc — Crea un nuovo device context

Descrizione

void printer_create_dc ( resource $handle )

La funzione crea un nuovo device context. Il device context è utilizzato per personalizzare gli oggetti grafici del documento. Il parametro handle deve indicare un handle valido di stampante.

Example #1 Esempio di utilizzo di printer_create_dc()

<?php
$handle 
printer_open();
printer_start_doc($handle);
printer_start_page($handle);

printer_create_dc($handle);
/* esegue qualche operazione sul device context */
printer_set_option($handlePRINTER_TEXT_COLOR"333333");
printer_draw_text($handle11"text");
printer_delete_dc($handle);

/* crea un'altro device context */
printer_create_dc($handle);
printer_set_option($handlePRINTER_TEXT_COLOR"000000");
printer_draw_text($handle11"text");
/* ci esegue delle operazioni */

printer_delete_dc($handle);

printer_end_page($handle);
printer_end_doc($handle);
printer_close($handle);
?>


add a note add a note User Contributed Notes
printer_create_dc
There are no user contributed notes for this page.

printer_create_font> <printer_create_brush
Last updated: Fri, 18 Jul 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites