Property | Type | Description | |
---|---|---|---|
$color | |||
$point1 | array | X,Y pos 1. | |
$point2 | array | X,Y pos 2. | |
$thickness | Thickness of line. |
Method | Description | |
---|---|---|
__construct ( array $point1, array $point2, integer $thickness = 1, |
Creates a line. | |
getColor ( ) : |
||
getPoint1 ( ) : array | ||
getPoint2 ( ) : array | ||
getThickness ( ) : integer |
public __construct ( array $point1, array $point2, integer $thickness = 1, |
||
$point1 | array | Array containing int X and int Y position of the starting point. |
$point2 | array | Array containing int X and int Y position of the starting point. |
$thickness | integer | Thickness in pixel. Note: This is currently ignored in GD editor and falls back to 1. |
$color | Color of the line. Defaults to black. |