Home > PHP > Function > Printer > printer_draw_line()

printer_draw_line()

printer_draw_line - Draw a line

Syntax

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

Arguments

  • printer_handle - printer_handle must be a valid printer handle.
  • from_x - from_x is the x coordinate of the origin point.
  • from_y - from_y is the y coordinate of the origin point.
  • to_x - to_x is the x coordinate of the destination point.
  • to_y - to_y is the y coordinate of the destination point.

Description

The function draws a line using the selected pen.

Version

PHP PECL printer SVN

Return value

No value is returned.