Home > PHP > Function > Printer > printer_draw_bmp()

printer_draw_bmp()

printer_draw_bmp - Draw a bmp

Syntax

bool printer_draw_bmp (resource $printer_handle, string $filename, int $x, int $y, int $width, int $height)

Arguments

  • printer_handle - printer_handle must be a valid printer handle.
  • filename - Path to the bitmap.
  • x - x is the upper left x coordinate of the bitmap.
  • y - y is the upper left y coordinate of the bitmap.
  • width - The bitmap width.
  • height - The bitmap height.

Description

The function draws an bmp.

Version

PHP PECL printer SVN

Return value

Returns TRUE on success or FALSE on failure.