Jump to content

imageCreateTrueColor()


corbin

Recommended Posts

Gah! I know something I'm doing is wrong... I just dont know what.  My PHP wont recognize the funtion imageCreateTrueColor...  Can someone tell me why...  The script I'm using right now is just copied and pasted from php.net while im tryin to get this to work......

[code]<?php
header ("Content-type: image/png");
$im = @imagecreatetruecolor(50, 100)
     or die("Cannot Initialize new GD image stream");
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5,  "A Simple Text String", $text_color);
imagepng($im);
imagedestroy($im);
?> [/code]

edit:  Forgot to say Apache 2.0.58 PHP 5.1.1
Link to comment
https://forums.phpfreaks.com/topic/14139-imagecreatetruecolor/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.