TwistPHP Documentation

polygon

File path: dist/twist/Core/Models/Image/Image.model.php
Namespace: Twist\Core\Models\Image
Extends:

polygonDraw a polygon on the image

Parameters

Name Type Description
$arrPointsarrayn/a
$intPointsCountintegern/a
[$strFillColour = ']stringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$arrPoints = array(=> 'foo'=> 'bar');
$intPointsCount 124;
$strFillColour ';

//Call the function polygon with the example vars
$resImage = new \Twist\Core\Models\Image\Image();
$resImage -> polygon($arrPoints, $intPointsCount, $strFillColour);