Link to home
Start Free TrialLog in
Avatar of Milcoi
Milcoi

asked on

imagecolorallocate imagestring

Hello,

I like to make the background transparent and the font color white.
some help is needed please:


$image = imagecreate(60, 17);
$white = imagecolorallocate($image, 255, 255, 255);
$black = imagecolorallocate($image,   0,   0,   0);
imagestring ($image, 3, 0, 4, $t_num, $black);
imagepng    ($image);
imagedestroy($image);

Open in new window

Avatar of Milcoi
Milcoi

ASKER

can I just add??:
ImageColorTransparent($Image, $back);
ASKER CERTIFIED SOLUTION
Avatar of virmaior
virmaior
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial