bluegroper
Technical User
Hi team
GD newbie here, pls be gentle.
I have the following code snippet.
Is there an easy way to CENTER the $msg within the graphic image .png file ?
At the mo $msg is left aligned.
The GD manual is quite confusing.
TIA's
-BG
GD newbie here, pls be gentle.
I have the following code snippet.
Code:
$xpos = 5;
$ypos = ($height - $f->height)/2;
$gd->fill(0,0,$bgcolor);
$gd->rectangle(0,0,$w-1,$h-1,$black);
$gd->string($f,$xpos,$ypos,$mesg,$black);
my $image = $gd->png();
At the mo $msg is left aligned.
The GD manual is quite confusing.
TIA's
-BG