Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
Heya!
I have drawn a simple circle with imagefilledellipse by the code belowCode: Select all
$image = imagecreatetruecolor(300, 300);
$ColorArea = imagecolorallocate($image, 0, 0, 255);
$XCenter=150;
$YCenter=150;
$Width=200;
$Height=200;
imageellipse($image, $XCenter, $YCenter, $Width, $Height, $ColorArea);
header("Content-type: image/png");
imagepng($image);;I am not very good in math and PHP, so thought I might ask here.
Somehow needing to convert the curved width and height into placeable pixels for the imagesting() where I can adjust where the text should go from something like $TextPos=70; and where 70 is there is where the text would be placed on the circle from the top.
Any Nibbles?
Jcart | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]