imagecolorallocate()
З.Ы. Капчу свою пишешь?
В kcaptcha сразу за imagecreatetruecolor() идет imagealphablending(), после этого при помощи imagecolorallocate() указывается цвет фона (белый) и цвет альфа слоя (черный) и поверх рисуется белый прямоугольник
PHP код:
<?php
$img=imagecreatetruecolor($width, $height);
imagealphablending($img, true);
$white=imagecolorallocate($img, 255, 255, 255);
imagefilledrectangle($img, 0, 0, $width-1, $height-1, $white);
?>