I have a function that generates text that matches the bottom of the circle. Since I donβt know another way that I can make the function fit the top of the circle so that it appears in front of me, I want to rotate the image, write on it, rotate it back and write it again. How can I do this without changing the image name?
I tried something like this:
<?php function create_image() { $im = @imagecreate(140, 140)or die("Cannot Initialize new GD image stream"); $background_color = imagecolorallocate($im, 255, 255, 255); imageellipse ( $im , $cx , $cy , $size*2 , $size*2 , $black ); write($im,$cx,$cy,$size,$s,$e,$black,$text1,$font,$size,$pad); imagerotate($im, 180,0); write($im,$cx,$cy,$size,$s,$e,$black,$text2,$font,$size,$pad); imagerotate($im, 180,0); imagepng($im,"image.png"); imagedestroy($im); } ?> <?php create_image(); print "<img src=image.png?".date("U").">"; ?>
But that will not work. He does not rotate the image.
Can you help me?
Thanx!