note 46244 deleted from function.imagerotate by cmb

From: Date: Mon, 22 Aug 2016 09:48:34 +0000
Subject: note 46244 deleted from function.imagerotate by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-206361@lists.php.net to get a copy of this message
Note Submitter: christoph (at) raketenbasis (dot) de ---- 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); } ?>

« previous php.notes (#206361) next »