Source for file fullExample.php
Documentation is available at fullExample.php
* Graph osztály importálása
require_once('../Graph.class.php');
//Az összes grafikus elem importálása
//Az összes iterátor importálása
//Új grafika létrehozása 300x300 méretben
$graph =
new Graph(300,300);
$graph->setBackGround(0,0,255);
$graph->transparent =
true;
$image =
new Image('pezsgo.jpg');
$image->setX($graph->width /
2,1);
$image->setY($graph->height /
2,1);
$image->cut(8,85,130,180);
$image->transparent =
false;
//kép hozzáadása a grafikához
//ellipszis iterátor létrehozása
//Ellipszis vonalán végig csillagok kirajzolása
foreach($iterator as $pos) {
$obj =
new Star((abs($isize)+
4) /
4);
$obj->transparent =
true;
$obj->color =
$graph->createColor(255,255,0);
$obj->borderColor =
$graph->createColor(200,0,0);
$text5 =
new Text('Törpi a sztár',32,-
10);
$text5->setX($graph->width/
2,1);
$text5->setY($graph->height-
1,2);
$text5->backGround =
$graph->createColor(255,0,255);
$text5->transparent =
true;
$text5->color =
$graph->createColor(255,0,0);
//szöveg hozzáadása a grafikához
$text6 =
new Text('Törpi a sztár',31,-
10);
$text6->setX($graph->width /
2,1);
$text6->setY($graph->height,2);
$text6->backGround =
$graph->createColor(0,0,0);
$text6->transparent =
true;
$text6->color =
$graph->createColor(255,255,0);
//szöveg hozzáadása a grafikához
//Új csillag elem létrehozása
$csillag->transparent =
true;
$csillag->color =
$graph->createColor(255,255,0);
$csillag->x =
$text6->x -
($text6->width /
2);
//csillag hozzáadása a grafikához
$ora->x =
$graph->width-
$ora->width/
2;
$ora->y =
$graph->height-
$ora->height/
2;
$ora->background =
$ora->createColor(0,0,130);
$ora->transparent =
true;
Documentation generated on Tue, 09 Feb 2010 01:17:48 +0100 by phpDocumentor 1.4.1