Warning: file_put_contents(): Only -1 of 58 bytes written, possibly out of free disk space in /var/www/html/index.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 25
printer_draw_elipse printer_draw_pie Drucker PHP Manual printer_draw_line (No version information available, might be only in CVS) — Zeichnet eine Linie Beschreibung void ( resource $printer_hand...
Forum und email

printer_draw_line

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

printer_draw_line — Zeichnet eine Linie

Beschreibung

void printer_draw_line ( resource $printer_handle , int $from_x , int $from_y , int $to_x , int $to_y )

Diese Funktion zeichnet einfach eine Linie von einer Koordinate from_x , from_y zu einer Koordinate to_x , to_y und verwendet dafür den ausgewählten Stift. printer_handle muss ein gültiger Druckerhandler sein.

Example#1 printer_draw_line() Beispiel

<?php
$handle 
= printer_open();
printer_start_doc($handle, "Mein Dokument");
printer_start_page($handle);

$stift = printer_create_pen(PRINTER_PEN_SOLID, 30, "000000");
printer_select_pen($handle, $stift);

printer_draw_line($handle, 1, 10, 1000, 10);
printer_draw_line($handle, 1, 60, 500, 60);

printer_delete_pen($stift);

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