Source for file text.php
Documentation is available at text.php
require_once('../Graph.class.php');
$graph =
new Graph(200,200);
$graph->transparent=
false;
$graph->setBackground(255, 255, 0);
$text =
new Text("Hello World",14);
$text->color =
$graph->createColor(255, 0, 200);
$text->setX($graph->width /
2,1);
$text2 =
new Text("Hello PHP graph",14,20);
$text2->color =
$graph->createColor(30, 130, 200);
$text2->setX($graph->width /
2,1);
$text2->transparent=
true;
$text3 =
new Text("Hmmmm.... ",17,-
40,'../fonts/arial.ttf');
$text3->color =
$graph->createColor(30, 200,10);
$text3->backGround =
$graph->createColor(255, 255, 0);
$text3->setX($graph->width /
2,1);
$text3->transparent=
true;
$text4 =
new Text("Keretes vagyok ",12,-
40);
$text4->color =
$graph->createColor(150, 200,10);
$text4->borderColor =
$graph->createColor(255, 255, 255);
$text4->setX(($graph->width /
2)-
40,1);
$text4->transparent=
true;
Documentation generated on Tue, 09 Feb 2010 01:17:52 +0100 by phpDocumentor 1.4.1