File path: dist/twist/Core/Models/Image/Image.model.php
Namespace: Twist\Core\Models\Image
aspectRatio
— Get the aspect ratio of an image from its width and height
Name | Description |
---|---|
$intWidth | n/a |
$intHeight | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$intWidth = 124;
$intHeight = 124;
//Call the function aspectRatio with the example vars
$resImage = new \Twist\Core\Models\Image\Image();
$resImage -> aspectRatio($intWidth, $intHeight);