Re: [PHP] text on image

2003-02-10 Thread Jason Wong
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

[PHP] text on image

2003-02-09 Thread Ilya Nemihin
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'