tags:

views:

292

answers:

3

So I Googled and found out how to draw an arc: http://www.php.net/manual/en/function.imagearc.php

The only problem is how do I write text $margin pixels from the arc that is curved.

Centre aligned @ $degrees.

Here is an example: http://img194.imageshack.us/img194/3667/scan0001fe.jpg

Let me know if this doesn't make sense.

A: 

try this.....array....

if($arctype)
{
    $start=(35-$l)/2;
    if($start%2) $start+=1;
    $gr=array_slice($gr,$start,$l);
    $ys=array_slice($ys,$start,$l);
}
chandru_cp
Can someone edit this I think some code isn't escaped.
steven
I did. @chandru_cp: Use four spaces at the beginning of the line to enjoy code formatting (or more to simulate tabs).
Franz
A: 

You could try this: http://coding.derkeiler.com/Archive/PHP/alt.php/2004-12/0061.html

oops
Looks like a start, I wonder how to centre align it @ x degrees though?
steven
A: 

Imagick has native support for curved text

Nick Brooks
How? Link please?
steven