When I run this simple code:
$thumbimage = imagecreatetruecolor(200, 150);
imagealphablending($thumbimage,true);
$black = imagecolorallocate($thumbimage, 0, 0, 0); //black
$white = imagecolorallocatealpha($thumbimage,255,255,255); //white
I get this error:
[Fri Feb 07 19:36:35 2003] [error] PHP Fatal error: Call to undefined function: imagecolorallocatealpha() in functest2.php on line 9
I have some lines of code above that, so the line numbers don't match. I am using PHP4.3.0 (windows binary on Apache 1.3.x) Is there any other way to use transparency effects than using imagecolorallocatealpha? Apparently it dosn't exist even though it is both in the PHP and GD documentation!😕