Creating numbered list in an image
Posted: Sat Nov 06, 2010 8:21 am
Hi!
I'm trying to create an image which will have a numbered list, while the numbers are going down from 1 to 20. Something like that:
[text]
1
2
3
4
etc...[/text]
The image is created ok, until I try this code to make the list:
What am I doing wrong and how can I make it work?
Thanks!
I'm trying to create an image which will have a numbered list, while the numbers are going down from 1 to 20. Something like that:
[text]
1
2
3
4
etc...[/text]
The image is created ok, until I try this code to make the list:
Code: Select all
$font_number = 5;
for($place = 1; $place = 20; $place++)
{
for($y_position=40; $y_position < ((($y_position + imagefontheight($font_number))+5)*20); $y_position += 10)
{
imagestring($image, $font_number, 40, $y_position, $place, $draw_color);
}
}Thanks!