- Code: Select all
$img = imagecreate($width,$height); //size of text image
$white = imagecolorallocate($img, 255,0,255); //no mater how this value are, it still black.
$waterMarkText = "watermark testing";
$ttf = $_SERVER['DOCUMENT_ROOT'] . "/font/timesbd.ttf";
imagettftext($photoImage, 12, 0, $horizmargin, $vertmargin, $white, $ttf, $waterMarkText);
$white = imagecolorallocate($img, 255,0,255); //no mater how this value are, it still black.
thanks


