PHP Класс Grafika\DrawingObject\Line

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$color Grafika\Color
$point1 array X,Y pos 1.
$point2 array X,Y pos 2.
$thickness Thickness of line.

Открытые методы

Метод Описание
__construct ( array $point1, array $point2, integer $thickness = 1, Color | string $color = '#000000' ) Creates a line.
getColor ( ) : Color
getPoint1 ( ) : array
getPoint2 ( ) : array
getThickness ( ) : integer

Описание методов

__construct() публичный Метод

Creates a line.
public __construct ( array $point1, array $point2, integer $thickness = 1, Color | string $color = '#000000' )
$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 Grafika\Color | string Color of the line. Defaults to black.

getColor() публичный Метод

public getColor ( ) : Color
Результат Grafika\Color

getPoint1() публичный Метод

public getPoint1 ( ) : array
Результат array

getPoint2() публичный Метод

public getPoint2 ( ) : array
Результат array

getThickness() публичный Метод

public getThickness ( ) : integer
Результат integer

Описание свойств

$color защищенное свойство

protected Color,Grafika $color
Результат Grafika\Color

$point1 защищенное свойство

X,Y pos 1.
protected array $point1
Результат array

$point2 защищенное свойство

X,Y pos 2.
protected array $point2
Результат array

$thickness защищенное свойство

Thickness of line.
protected $thickness