TwistPHP Documentation

rectangle

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

rectangleDraw a rectangle on the image

Parameters

Name Type Description
$intStartXintegern/a
$intStartYintegern/a
$intEndXintegern/a
$intEndYintegern/a
[$strFillColour = ']stringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$intStartX 124;
$intStartY 124;
$intEndX 124;
$intEndY 124;
$strFillColour ';

//Call the function rectangle with the example vars
$resImage = new \Twist\Core\Models\Image\Image();
$resImage -> rectangle($intStartX, $intStartY, $intEndX, $intEndY, $strFillColour);