text on image

From: Date: Mon, 10 Feb 2003 07:18:16 +0000
Subject: text on image
Groups: php.general 
Request: Send a blank email to php-general+get-135016@lists.php.net to get a copy of this message
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...? Ilya

« previous php.general (#135016) next »