TwistPHP Documentation


File path: dist/twist/Core/Utilities/Image.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

createCreate a new image from scratch, and Image object will be produced allowing complete control over the image.
Once all changes have been made you can then export the image as a file or serve to the screen.


Name Type Description

Return Values

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


//Set the variables for the example
$intWidth 124;
$intHeight 124;
$strFillColour 'foo';

//Call the function create with the example vars
Twist::Image() -> create($intWidth$intHeight$strFillColour);