TwistPHP Documentation


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

__constructImage object that allow the manipulation of images, adding text, inserting watermarks, applying effects, resizing and altering output quality.
The object can both import and export an image in Base64 encoding and Raw image source. Images can be served to screen our output as a file if required.


Name Type Description
[$mxdImage = null]mixedn/a
[$intWidth = null]integern/a
[$intHeight = null]integern/a
[$strFillColour = null]stringn/a

Return Values

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


//Set the variables for the example
$mxdImage null;
$intWidth null;
$intHeight null;
$strFillColour null;

//Call the function __construct with the example vars
$resImage = new \Twist\Core\Models\Image\Image();
$resImage -> __construct($mxdImage$intWidth$intHeight$strFillColour);