Hello firends,

i am trying to fill color to circle using GD library but i am not able to do it . this is what i was trying to do.

// define the color
$pink=ImageColorAllocate($im,231,36,218);
// drawing the image
imagearc($im,$arrCircle[0],$arrCircle[1],$arrCircle[2],$arrCircle[2],0,360,$pink);
imagefilltoborder($im,$arrCircle[0],$arrCircle[1],$pink,$pink);

can anyone help.

    Have a look at the [man]imagearc[/man] page; there are a bunch of filled-arc implementations there. Or if you've got GD2.0.1+, just use [man]imagefilledarc[/man]

      Write a Reply...