\Grafika\Imagick\DrawingObjectLine

Class Line

Summary

Methods
Properties
Constants
__construct()
getPoint1()
getPoint2()
getThickness()
getColor()
draw()
No public properties found
No constants found
No protected methods found
$point1
$point2
$thickness
$color
N/A
No private methods found
No private properties found
N/A

Properties

$point1

$point1 : array

X,Y pos 1.

Type

array

$point2

$point2 : array

X,Y pos 2.

Type

array

$thickness

$thickness : integer

Type

integer — Thickness of line.

Methods

__construct()

__construct(array  $point1, array  $point2, integer  $thickness = 1, \Grafika\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.

integer $thickness

Thickness in pixel. Note: This is currently ignored in GD editor and falls back to 1.

\Grafika\Color|string $color

Color of the line. Defaults to black.

getPoint1()

getPoint1() : array

Returns

array

getPoint2()

getPoint2() : array

Returns

array

getThickness()

getThickness() : integer

Returns

integer