note 28562 added to function.imagecolorallocate
| From: | php-general at lists dot php dot net | Date: | Thu, 16 Jan 2003 22:45:05 +0000 |
| Subject: | note 28562 added to function.imagecolorallocate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-42242@lists.php.net to get a copy of this message | ||
whatever i type in imagecolorallocate, the color is on every picture different.
here is my php-code:
header("Content-type: image/jpeg");
$str="http://www.fetenplaner.de";
$datei="../zeigebild/bild.jpg";
$foto="$bildnr"."_JPG.jpg";
$bild="../$archive/$pfad/Bilder/$foto";
$img=imagecreatefromjpeg($bild);
$unten="$str";
$oben="$datum $namen";
$hoehe=imagesy($img);
$breite=imagesx($img);
$white=imageColorAllocate($img,255,255,255);
$x=$breite-250;
$y=$hoehe-20;
imagestring($img,10,$x,$y,$unten, $white);
imagestring($img,10,10,10,$oben, $white);
imagejpeg($img,($datei),100);
imagedestroy($img);
is there a wrong configuration at the webserver?
--
http://www.php.net/manual/en/function.imagecolorallocate.php
http://master.php.net/manage/user-notes.php?action=edit+28562
http://master.php.net/manage/user-notes.php?action=delete+28562
http://master.php.net/manage/user-notes.php?action=reject+28562