J
juliani.moon
I am using "GD::Image" to draw graphs, and have this line to print a
text:
$newimg->string(gdSmallFont,3,2,"Data Source: User submitted",$red);
which works fine.
However, when I try to use a variable to define its position, like in:
$ftop= 20;
$newimg->string(gdSmallFont,3,$ftop,"Data Source: User submitted",
$red);
or
$newimg->string(gdSmallFont,3,"$ftop","Data Source: User submitted",
$red);
they fail to work (graph is drawn without the text).
Any suggestion?
joe
text:
$newimg->string(gdSmallFont,3,2,"Data Source: User submitted",$red);
which works fine.
However, when I try to use a variable to define its position, like in:
$ftop= 20;
$newimg->string(gdSmallFont,3,$ftop,"Data Source: User submitted",
$red);
or
$newimg->string(gdSmallFont,3,"$ftop","Data Source: User submitted",
$red);
they fail to work (graph is drawn without the text).
Any suggestion?
joe