Displaying a fresh generated image.
Posted: Sat Jan 17, 2004 12:36 pm
I have generated a new image, how can i display it into other file where i have also other texts?
My function looks:
My function looks:
Code: Select all
<?php
header("Content-type: image/png");
function WriteImage($string)
{
$im = imagecreatefrompng("bgimage.png");
$orange = imagecolorallocate($im, 220, 210, 60);
imagestring($im, 5, 10, 4, $string, $orange);
imagepng($im);
imagedestroy($im);
}
?>