Microsoft Word - Core PHP Programming Using PHP to Build Dynamic Web Sites

(singke) #1

//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.

Free download pdf