printer_draw_bmp
(PECL)
printer_draw_bmp -- Dessine un fichier BMP
Description
bool
printer_draw_bmp ( resource handle, string filename, int x, int y [, int width, int height] )
printer_draw_bmp() dessine simplement l'image
BMP filename
, à la position
x
, y
.
handle
doit être une ressource d'imprimante valide.
Cette fonction retourne TRUE en cas de
succès, FALSE en cas d'échec.
Exemple 1. Exemple avec printer_draw_bmp()
<?php $handle = printer_open(); printer_start_doc($handle, "Mon Document"); printer_start_page($handle);
printer_draw_bmp($handle, "c:\\image.bmp", 1, 1);
printer_end_page($handle); printer_end_doc($handle); printer_close($handle); ?>
|
|