$width
$width : integer
Image width in pixels
Class Rectangle
$fillColor : \Grafika\Color
$borderColor : \Grafika\Color
__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.
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. |
getFillColor() : \Grafika\Color
getBorderColor() : \Grafika\Color
draw(\Grafika\ImageInterface $image) : \Grafika\ImageInterface
\Grafika\ImageInterface | $image |