PRINTER_DRAW_BMP(3) 1 PRINTER_DRAW_BMP(3)
printer_draw_bmp - Draw a bmp
SYNOPSIS
bool printer_draw_bmp (resource $printer_handle, string $filename, int $x, int $y, [int $width], int $height)
DESCRIPTION
The function draws an bmp.
PARAMETERS
o $printer_handle
-$printer_handle must be a valid printer handle.
o $filename
- Path to the bitmap.
o $x
-$x is the upper left x coordinate of the bitmap.
o $y
-$y is the upper left y coordinate of the bitmap.
o $width
- The bitmap width.
o $height
- The bitmap height.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
printer_draw_bmp(3) example
<?php
$handle = printer_open();
printer_start_doc($handle, "My 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);
?>
PHP Documentation Group PRINTER_DRAW_BMP(3)