Home > PHP > Function > > ImagickDraw::line()

ImagickDraw::line()

ImagickDraw::line - Draws a line

Syntax

bool ImagickDraw::line (float $sx, float $sy, float $ex, float $ey)

Arguments

  • sx - starting x coordinate
  • sy - starting y coordinate
  • ex - ending x coordinate
  • ey - ending y coordinate

Description

Draws a line on the image using the current stroke color, stroke opacity, and stroke width.

Version

PHP PECL imagick 2.0.0

Return value

No value is returned.