Engineerisaac Network
Advertisement
Basic GD Library Example - Text on Black Engineerisaac's Blog This Thread has 49 Views

ENGINEERISAAC

154 posts Administrator
#164 Fri, Dec 27, 2019 at 4:34 PM
https://engineerisaac.com/screenshots/JOE-PC_8c7392.png



header('Content-Type: image/png');
$im = imagecreatetruecolor(500,200);
$text_color = imagecolorallocate($im, 255, 255, 255);
imagestring($im, 6, 5, 5, 'A Simple Text String', $text_color);
imagettftext($im, 20, 0, 10, 20, $white, $font, $text);
imagepng($im);
imagedestroy($im);

Guests Cannot Post!

If you would like to Comment on this video! Consider joining the Blue community!

Register Login