Re: Re: php and colors
| From: | joe111 | Date: | Tue, 08 Apr 2003 07:50:09 +0000 |
| Subject: | Re: Re: php and colors | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142814@lists.php.net to get a copy of this message | ||
That is not the point! I know the rgb for red very well. Just the
Imagecolorallocate doesnt work like that. Copy-paste from the manual:
imagecolorallocate() must be called to create each color that is to be used
in the image represented by image.
It is used with the imagecreate() but if i use imagecreatefrompng() the
colors are not there! i have only black and white.
"Leif K-Brooks" <eurleif@buyer-brokerage.com> wrote in message
news:3E9241A4.50506@buyer-brokerage.com...
> No, it's 255,0,0.
>
> Mike Mannakee wrote:
>
> >RGB value for red = 256,0,0.
> >
> >Mike
> >
> >
> >"Joe111" <liberache@hot.ee> wrote in message
> >news:20030407194102.34622.qmail@pb1.pair.com...
> >
> >
> >>i want to put red text on a black-and-white picture with php. i am using
> >>imagecreatefrompng()
> >>i have usually found the color with ImageColorAllocate() but on a
> >>black-and-white picture there is no red so the script fails.
> >>could somebody please help me solve this problem? maybe give me a hint
on
> >>another function.
> >>thank you
> >>
> >>
> >>
> >>
> >
> >
> >
> >
> >
>
> --
> The above message is encrypted with double rot13 encoding. Any
unauthorized attempt to decrypt it will be prosecuted to the full extent of
the law.
>
>