File path: dist/twist/Core/Models/Image/Image.model.php
Namespace: Twist\Core\Models\Image
line
— Draw a line on the image, you have the option of setting the width of the line. The line can be drawn at any angle
Name | Description |
---|---|
$intStartX | n/a |
$intStartY | n/a |
$intEndX | n/a |
$intEndY | n/a |
[$strFillColour = '] | n/a |
[$intWidth = 1] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$intStartX = 124;
$intStartY = 124;
$intEndX = 124;
$intEndY = 124;
$strFillColour = ';
$intWidth = 1;
//Call the function line with the example vars
$resImage = new \Twist\Core\Models\Image\Image();
$resImage -> line($intStartX, $intStartY, $intEndX, $intEndY, $strFillColour, $intWidth);