PHP Doku:: Erstellt einen Gerätekontext - function.printer-create-dc.html

Verlauf / Chronik / History: (2) anzeigen

Sie sind hier:
Doku-Startseite ≥ PHP-Handbuch ≥ Funktionsreferenz ≥ Windowsbasierte Erweiterungen ≥ Printer ≥ Printer Funktionen ≥ printer_create_dc

Ein Service von Reinhard Neidl - Webprogrammierung.

Printer Funktionen

<<printer_create_brush

printer_create_font>>

printer_create_dc

(PECL printer SVN)

printer_create_dc — Erstellt einen Gerätekontext

Beschreibung

void printer_create_dc ( resource $handle )

Diese Funktion erstellt einen neuen Gerätekontext (device context). Ein Gerätekontext wird verwendet um die graphischen Elemente eines Dokumentes anzupassen. handle muss ein gültiger Druckerhandler sein.

Beispiel #1 printer_create_dc() Beispiel

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

/* erstellen eines Gerätekontexts */
printer_create_dc($handle);
/* ein paar Verwendungen des Gerätekontexts */
printer_set_option($handle, PRINTER_TEXT_COLOR, "333333");
printer_draw_text($handle, 1, 1, "text");
/* löschen des Gerätekontexts */
printer_delete_dc($handle);

/* erstellen eines weiteren Gerätekontexts */
printer_create_dc($handle);
printer_set_option($handle, PRINTER_TEXT_COLOR, "000000");
printer_draw_text($handle, 1, 1, "text");
printer_delete_dc($handle);

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

Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)