The rotation and display work on this small script but how do I keep transparency. According to the docs there is a 4th var in the rotate command to control transparency but however I add the var the script throws an error. (too many vars)
Keith
Code:
<?php
ini_set('display_errors',1);
error_reporting(E_ALL|E_STRICT);
$img_name='images/dirarr2.png';
$Rotat=45;
$Rotat=360-$Rotat;
$src_img = ImageCreateFrompng($img_name);
$BackCuller = imagecolorallocate($src_img, 0,0,0);
[red]$Rotate=imagerotate ($src_img , $Rotat, $BackCuller);[/red]
Imagepng($Rotate);
ImageDestroy($src_img);
?>
Keith