TwistPHP Documentation

create

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.

Parameters

Name Type Description
$intWidthintegern/a
$intHeightintegern/a
$strFillColourstringn/a

Return Values

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

Example

<?php
//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);