PHP 클래스 Grafika\DrawingObject\Line

파일 보기 프로젝트 열기: kosinix/grafika

보호된 프로퍼티들

프로퍼티 타입 설명
$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