class Line extends Line implements DrawingObjectInterface

Class Line

Methods

__construct(array $point1, array $point2, int $thickness = 1, Color $color)

Creates a line.

from Line
array
getPoint1()

No description

from Line
array
getPoint2()

No description

from Line
int
getThickness()

No description

from Line
getColor()

No description

from Line
draw(ImageInterface $image)

No description

Details

in Line at line line 43
__construct(array $point1, array $point2, int $thickness = 1, Color $color)

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 $color Color of the line.

in Line at line line 54
array getPoint1()

Return Value

array

in Line at line line 62
array getPoint2()

Return Value

array

in Line at line line 70
int getThickness()

Return Value

int

in Line at line line 78
Color getColor()

Return Value

Color

at line line 20
ImageInterface draw(ImageInterface $image)

Parameters

ImageInterface $image

Return Value

ImageInterface