note 46234 deleted from function.imagerotate by aidan

From: Date: Mon, 04 Oct 2004 07:07:13 +0000
Subject: note 46234 deleted from function.imagerotate by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-77891@lists.php.net to get a copy of this message
Note Submitter: andreaskalsch at gmx dot de ---- A simple function that returns the rotated image (90, 180 or 360 degrees): <? function image_rotate($im, $angle) { if ($angle == 180) { $im = imagerotate($im, $angle, ''); return $im; } elseif ($angle == 90 || $angle == 270) { $im_ = imagecreate(imagesx($im), imagesy($im)); $im_ = imagerotate($im, -$angle, ''); return $im_; } } ?>

« previous php.notes (#77891) next »