I am just trying out some piece of code relating to GD and image functions on the PHP.net website. I was expecting something to appear on the page when it is executed, but nothing displays on the page. The code below was lifted from their website, that still does not let me get desired results.
How do I output it then?
//create a blank image
$image = imagecreatetruecolor(400, 300);
//select the background color
$bg = imagecolorallocate($image, 0, 0, 0);
//fill the background with color selected above
imagefill($image, 0, 0, $bg);
//coose a color for the ellipse
$col_ellipse = imagecolorallocate($image, 255, 255, 255);
imageellipse($image, 200, 150, 300, 200, $col_ellipse);
//output the image