File: text-example1.php

package info (click to toggle)
libphp-jpgraph 1.5.2-13.1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 896 kB
  • sloc: php: 8,995; makefile: 27
file content (18 lines) | stat: -rwxr-xr-x 400 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
include ("/usr/share/jpgraph/jpgraph.php");
include ("/usr/share/jpgraph/jpgraph_canvas.php");

// Create the graph. 
$graph = new CanvasGraph(350,200,"auto");	

$t1 = new Text("This is a text with more text");
$t1->Pos(0.01,0.5);
$t1->SetOrientation("h");
$t1->SetFont(FF_FONT1,FS_NORMAL);
$t1->SetBox("white","black",true);
$t1->SetColor("black");
$graph->AddText($t1);

$graph->Stroke();

?>