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
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'
2 matches
Mail list logo