Mam taki skrypt do obracania i obróbki obrazka:
<?php { $c = 1; $c = (int)$_GET['c']; if (($c<1) || ($c>6)) $c = 1; $ff = "CHeadN_S".$c.".gif"; $ti = imagecreatefromgif($ff); $thumb = imagecreatetruecolor($tiwidth, $tiheight); imagealphablending($thumb, false); $color = imagecolorallocatealpha($thumb, 255, 255, 255, 127); imagefill($thumb, 0, 0, $color); imagesavealpha($thumb, true); imagecopyresampled($thumb, $ti, 0, 0, 0, 0, $tiwidth, $tiheight, $tiwidth, $tiheight); $source = $thumb; }else{ { $filename = 'CHeadN_S1.png'; } $source = imagecreatefrompng( $filename ); } $a = 0; $r = imagerotate( $source, $a, -1 ); imagealphablending($r, true); imagesavealpha($r, true); imagepng($r); imagedestroy( $source ); imagedestroy( $r ); ?>
Problem w tym że chciałbym ażeby obracał się on według wskazówek zegara (chcę np. obrócić go o 90 stopni - to żeby obrazek był w prawo... - aktualnie obraca go w lewo...)
działanie skryptu można znaleźć tutaj: http://www.eksiegarnia.net/autka/obrazek.p...mp;a=45&c=1
Parametr a to właśnie kąty...
Wiecie może jak to zrobić??
Z góry dzięki za pomoc,
pozdrawiam Northwest