source: trunk/xgraph/jpgraph/Examples/checkgd.php

Last change on this file was 42, checked in by marrucho, 10 years ago
File size: 467 bytes
Line 
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
7imagerectangle($im,0,0,199,99,$border_color);
8imagestring ($im, 5, 10, 40, "a simple text string", $text_color );
9header ("content-type: image/png");
10imagepng ($im);
11?>
Note: See TracBrowser for help on using the repository browser.