\Grafika\Imagick\DrawingObjectPolygon

Class Polygon

Summary

Methods
Properties
Constants
__construct()
getWidth()
getHeight()
getPoints()
getBorderSize()
getFillColor()
getBorderColor()
draw()
No public properties found
No constants found
points()
$width
$height
$points
$borderSize
$fillColor
$borderColor
N/A
No private methods found
No private properties found
N/A

Properties

$width

$width : integer

Image width in pixels

Type

integer

$height

$height : integer

Image height in pixels

Type

integer

$points

$points : array

Array of all X and Y positions. Must have at least three positions (x,y).

Type

array

$borderSize

$borderSize : integer

Type

integer

Methods

__construct()

__construct(array  $points = array(array(0, 0), array(0, 0), array(0, 0)), integer  $borderSize = 1, \Grafika\Color|string|boolean  $borderColor = '#000000', \Grafika\Color|string|boolean  $fillColor = '#FFFFFF') 

Creates a polygon.

Parameters

array $points

Array of all X and Y positions. Must have at least three positions.

integer $borderSize

Size of the border in pixels. Defaults to 1 pixel. Set to 0 for no border.

\Grafika\Color|string|boolean $borderColor

Border color. Defaults to black. Set to null for no color.

\Grafika\Color|string|boolean $fillColor

Fill color. Defaults to white. Set to null for no color.

getWidth()

getWidth() : integer

Returns

integer

getHeight()

getHeight() : integer

Returns

integer

getPoints()

getPoints() : array

Returns

array

getBorderSize()

getBorderSize() : integer

Returns

integer

getFillColor()

getFillColor() : \Grafika\Color

Returns

\Grafika\Color

getBorderColor()

getBorderColor() : \Grafika\Color

Returns

\Grafika\Color

points()

points()