remove datatable unit tests
[contractdashboard.git] / lib / example.transparent.background.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php   
 /* CAT:Misc */
 
 /* pChart library inclusions */
 include("../class/pDraw.class.php");
 include("../class/pImage.class.php");
 
 /* Create the pChart object */
 $myPicture = new pImage(700,230,NULL,TRUE);
 
 /* Draw a rounded filled rectangle */
 $RectangleSettings = array("R"=>209,"G"=>31,"B"=>27,"Alpha"=>50,"Surrounding"=>30);
 $myPicture->drawRoundedFilledRectangle(10,25,70,55,5,$RectangleSettings);
 
 /* Draw a rounded filled rectangle */
 $RectangleSettings = array("R"=>209,"G"=>125,"B"=>27,"Alpha"=>50,"Surrounding"=>30);
 $myPicture->drawRoundedFilledRectangle(10,85,70,115,5,$RectangleSettings);
 
 /* Draw a rounded filled rectangle */
 $RectangleSettings = array("R"=>209,"G"=>198,"B"=>27,"Alpha"=>50,"Surrounding"=>30);
 $myPicture->drawRoundedFilledRectangle(10,135,70,165,5,$RectangleSettings);
 
 /* Draw a rounded filled rectangle */
 $RectangleSettings = array("R"=>134,"G"=>209,"B"=>27,"Alpha"=>50,"Surrounding"=>30);
 $myPicture->drawRoundedFilledRectangle(10,185,70,215,5,$RectangleSettings);
 
 /* Enable shadow computing */
 $myPicture->setShadow(TRUE,array("X"=>2,"Y"=>2,"R"=>0,"G"=>0,"B"=>0,"Alpha"=>20));
 
 /* Draw a rounded filled rectangle */
 $RectangleSettings = array("R"=>209,"G"=>198,"B"=>27,"Alpha"=>100,"Surrounding"=>30,"Radius"=>20);
 $myPicture->drawRoundedFilledRectangle(100,20,680,210,20,$RectangleSettings);
 
 /* Render the picture (choose the best way) */
 $myPicture->autoOutput("pictures/example.transparent.background.png");
?>