Rev | Line | |
---|
[42] | 1 | <?php // content="text/plain; charset=utf-8" |
---|
| 2 | $im = @imagecreate (200, 100) or die ( "cannot create a new gd image."); |
---|
| 3 | $background_color = imagecolorallocate ($im, 240, 240, 240); |
---|
| 4 | $border_color = imagecolorallocate ($im, 50, 50, 50); |
---|
| 5 | $text_color = imagecolorallocate ($im, 233, 14, 91); |
---|
| 6 | |
---|
| 7 | imagerectangle($im,0,0,199,99,$border_color); |
---|
| 8 | imagestring ($im, 5, 10, 40, "a simple text string", $text_color ); |
---|
| 9 | header ("content-type: image/png"); |
---|
| 10 | imagepng ($im); |
---|
| 11 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.