The code is,
Code: Select all
<?php
$img = imageCreateTrueColor( 600, 600);
$red = imagecolorallocatealpha($img, 255, 0, 0,50);
$blue = imagecolorallocatealpha($img, 0, 0, 255,50);
imagefilledellipse ($img, 300, 300, 400, 400, $red);
imagefilledellipse ($img, 300, 300, 350, 350, $blue);
header( 'Content-Type: image/png' );
imagePNG( $img );
imagedestroy($img);
?>
Can anyone please help me with this.
Regards,
Hari