Createn image using a color red as background in PHP
Description
The following code shows how to createn image using a color red as background.
Example
<?php/*from www .j a va2s . com*/
$img = imagecreate(200, 200);
imagecolorallocate($img, 0xFF,0,0);
header("Content-type: image/png");
imagepng($img);
?>
The code above generates the following result.