//write the text
imagettftext($image, $size, $angle,
$startX, $startY, $colorBlack,
"comic.ttf", "PHP");
//send image
header("Content-type: image/jpeg");
imagejpeg($image);
?>
boolean imagewbmp(integer image, string filename)
The imagewbmp function either sends an image to the browser or writes it to a file. If a
filename is provided, a WAP (Wireless Application Protocol) bitmap file is created.
Otherwise, the image is sent directly to the browser. This function is similar to imagepng
and imagejpeg.