note 46244 added to function.imagerotate
| From: | dot) | Date: | Mon, 04 Oct 2004 07:41:25 +0000 |
| Subject: | note 46244 added to function.imagerotate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-77893@lists.php.net to get a copy of this message | ||
The default direction of imageRotate() is counter clockwise. Heres a little function which solves
the problem.
<?php
function rotate(&$image_source, $rotate_value, $rotate_clockwise = true) {
if($rotate_clockwise == true) {
$rotate_value = 360 - $rotate_value;
}
$image_source = imageRotate($image_source, $rotate_value, 0);
}
?>
----
Manual Page -- http://www.php.net/manual/en/function.imagerotate.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46244
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46244&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46244&report=yes
Search -- http://master.php.net/manage/user-notes.php