TwistPHP Documentation

flip

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

flipFlip the image horizontally or vertically. This will create the same effect as looking at the image from behind or in a mirror.

Parameters

Name Type Description
$strDirectionstringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$strDirection 'foo';

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