Re: Re: php and colors

From: Date: Tue, 08 Apr 2003 12:42:30 +0000
Subject: Re: Re: php and colors
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-142849@lists.php.net to get a copy of this message
Open up the png in photoshop (or some other image editor) and change the mode from grayscale to rgb. An rgb color will not go into a grayscale image. Mike "Joe111" <liberache@hot.ee> wrote in message news:20030408075134.82146.qmail@pb1.pair.com... > 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. > > > > > >

« previous php.general (#142849) next »