File path: dist/twist/Core/Models/Image/Image.model.php
Namespace: Twist\Core\Models\Image
resizeContain
— Keeping the same aspect ratio as the original, contain the image within the width and height provided, any white space will be filled with the fill colour
Name | Description |
---|---|
$intContainerWidth | n/a |
$intContainerHeight | n/a |
[$strFillColour = '] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$intContainerWidth = 124;
$intContainerHeight = 124;
$strFillColour = ';
//Call the function resizeContain with the example vars
$resImage = new \Twist\Core\Models\Image\Image();
$resImage -> resizeContain($intContainerWidth, $intContainerHeight, $strFillColour);