1 | <?php // content="text/plain; charset=utf-8"
|
---|
2 | $im = imagecreatetruecolor ( 300, 200);
|
---|
3 | $black = imagecolorallocate ($im, 0, 0, 0);
|
---|
4 | $lightgray = imagecolorallocate ($im, 230, 230, 230);
|
---|
5 | $darkgreen = imagecolorallocate ($im, 80, 140, 80);
|
---|
6 | $white = imagecolorallocate ($im, 255, 255, 255);
|
---|
7 |
|
---|
8 | imagefilledrectangle ($im,0,0,299,199 ,$lightgray);
|
---|
9 | imagerectangle ($im,0,0,299,199,$black);
|
---|
10 | imagefilledellipse ($im,150,100,210,110,$white);
|
---|
11 | imagefilledellipse ($im,150,100,200,100,$darkgreen);
|
---|
12 | header ("Content-type: image/png");
|
---|
13 | imagepng ($im);
|
---|
14 | ?>
|
---|