class Line

Base class

Methods

__construct(array $point1, array $point2, int $thickness = 1, Color|string $color = '#000000')

Creates a line.

array
getPoint1()

No description

array
getPoint2()

No description

int
getThickness()

No description

getColor()

No description

Details

at line line 43
__construct(array $point1, array $point2, int $thickness = 1, Color|string $color = '#000000')

Creates a line.

Parameters

array $point1 Array containing int X and int Y position of the starting point.
array $point2 Array containing int X and int Y position of the starting point.
int $thickness Thickness in pixel. Note: This is currently ignored in GD editor and falls back to 1.
Color|string $color Color of the line. Defaults to black.

at line line 57
array getPoint1()

Return Value

array

at line line 65
array getPoint2()

Return Value

array

at line line 73
int getThickness()

Return Value

int

at line line 81
Color getColor()

Return Value

Color