printer_draw_elipse

(no version information, might be only in CVS)

printer_draw_elipse -- Traccia una ellisse

Descrizione

void printer_draw_elipse ( resource handle, int ul_x, int ul_y, int lr_x, int lr_y )

La funzione disegna una ellisse. Il parametro handle deve esesre un handle valido di stampante.

ul_x indica la coordinata x in alto a sinistra dell'ellisse.

ul_y indica la coordinata y in alto a sinistra dell'ellisse.

lr_x indica la coordinata x in basso a destra dell'ellisse.

lr_y indica la coordinata y in basso a destra dell'ellisse.

Esempio 1. Esempio di utilizzo di printer_draw_elipse()

<?php
$handle
= printer_open();
printer_start_doc($handle, "My Document");
printer_start_page($handle);

$pen = printer_create_pen(PRINTER_PEN_SOLID, 2, "000000");
printer_select_pen($handle, $pen);

$brush = printer_create_brush(PRINTER_BRUSH_SOLID, "2222FF");
printer_select_brush($handle, $brush);

printer_draw_elipse($handle, 1, 1, 500, 500);

printer_delete_brush($brush);
printer_delete_pen($pen);

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

Hosting by: hurra.com
Generated: 2007-01-26 17:56:31