class Polygon extends Polygon implements DrawingObjectInterface

Class Rectangle

Methods

__construct(array $points = array(array(0, 0), array(0, 0), array(0, 0)), int $borderSize, Color $borderColor, Color $fillColor)

Creates a polygon.

from Polygon
int
getWidth()

No description

from Polygon
int
getHeight()

No description

from Polygon
array
getPoints()

No description

from Polygon
int
getBorderSize()

No description

from Polygon
getFillColor()

No description

from Polygon
getBorderColor()

No description

from Polygon
draw(ImageInterface $image)

No description

Details

in Polygon at line line 52
__construct(array $points = array(array(0, 0), array(0, 0), array(0, 0)), int $borderSize, Color $borderColor, Color $fillColor)

Creates a polygon.

Parameters

array $points Array of all X and Y positions. Must have at least three positions.
int $borderSize Size of the border in pixels. Defaults to 0 or no border.
Color $borderColor Border color. Defaults to black.
Color $fillColor Fill color. Defaults to none (null).

in Polygon at line line 62
int getWidth()

Return Value

int

in Polygon at line line 70
int getHeight()

Return Value

int

in Polygon at line line 78
array getPoints()

Return Value

array

in Polygon at line line 86
int getBorderSize()

Return Value

int

in Polygon at line line 94
Color getFillColor()

Return Value

Color

in Polygon at line line 102
Color getBorderColor()

Return Value

Color

at line line 15
ImageInterface draw(ImageInterface $image)

Parameters

ImageInterface $image

Return Value

ImageInterface