As a temporary solution to the missing imagerotate() I now use this piece of
code, and include
it in those php-files that is dependent on the function imagerotate()
<?
function imagerotate($src, $angle, $dummy) {
$width = imagesx($src);
$height = imagesy($src);
if ($angle == 90 || $angle == 270)
$dst = imagecreatetruecolor($height, $width);
else
$dst = imagecreatetruecolor($width, $height);
for ($y = 0 ; $y < $height ; $y++) {
for($x=0;$x<$width;$x++) {
switch ($angle) {
case 90:
imagecopy($dst, $src, $height-$y-1, $x, $x, $y,
1, 1);
break;
case 180:
imagecopy($dst, $src, $x, $y, $width-$x-1,
$height-$y-1, 1, 1);
break;
case 270:
imagecopy($dst, $src, $y, $width-$x-1, $x, $y,
1, 1);
break;
default:
imagecopy($dst, $src, $x, $y, $x, $y, 1, 1);
}
}
}
imagedestroy($src);
return($dst);
}
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]