On Monday 10 February 2003 15:18, Ilya Nemihin wrote:
> I try to place text on image, but have "color" problems.
>
> code:
> $im = imagecreatefromjpeg( 'test.jpg' );
> $white = ImageColorAllocate ($im, 255, 255, 255);
> ImageTTFText ($im, 20, 0, 0, 20, $white, './fonts/times.ttf', 'text text
> text' );
> ImageJpeg( $im, 'test_out.jpg' );
>
> i.e. I want to have 'white' text, but text absolutely not rgb(255,255,255),
> image truecolor.
>
> I must use imagecreatetruecolor? but how...?

archives > "text on image"

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
OKAY!!  Turn on the sound ONLY for TRYNEL CARPETING, FULLY-EQUIPPED
R.V.'S and FLOATATION SYSTEMS!!
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to