Could try this:
$blue = ImageColorAllocate($image, 0, 0, 255);
Substitue blue for yellow and you'll be the appropriate RGB values for the
numbers.
Jeff
> -----Original Message-----
> From: SED [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 10, 2001 1:27 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] How to add a new color to JPEG
>
>
> Lets say I have a black JPEG-image and I want to add yellow text to it,
> how can I define the yellow color?
>
> According to the manual, you can only get closest value of your desired
> color by letting the ImageColorClosest() find it. Therefore, if the
> image is totally black, you can not get the yellow color. I have not
> found a way to do this though I believe I have tried everything. And
> yet, I have not found any documents covering this other than PHP-manual.
>
> Do you know of a way to do this? Or do you know of other
> manuals/tutorials covering this issue?
>
> Regards,
> Sumarlidi Einar Dadason
>
> SED - Graphic Design
>
> ------------------------------------------
> Phone: (+354) 4615501
> Mobile: (+354) 8960376
> Fax: (+354) 4615503
> E-mail: [EMAIL PROTECTED]
> Homepage: www.sed.is
> ------------------------------------------
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]