TwistPHP Documentation

aspectRatio

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

aspectRatioGet the aspect ratio of an image from its width and height

Parameters

Name Type Description
$intWidthintegern/a
$intHeightintegern/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;

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