Changed the entire file structure to remove the .c includes from cairo.c
[phpCairo.git] / testcases / phpCairo / caps-sub-paths.php
blob9893628d47cba104752898175b00b07ae171c9ef
1 <?
2 $sur = new CairoImageSurface(FORMAT_ARGB32, 20, 20);
3 $con = new CairoContext($sur);
5 $con->save();
6 $con->setSourceRgb(1,1,1);
7 $con->paint();
8 $con->restore();
10 $con->setLineWidth(4);
11 $con->setLineCap(LINE_CAP_ROUND);
12 $con->moveTo(4,4);
13 $con->lineTo(4,16);
14 $con->moveTo(10,4);
15 $con->lineTo(10,16);
16 $con->moveTo(16,4);
17 $con->lineTo(16,16);
19 $con->stroke();
20 $sur->writeToPng("caps-sub-paths-php.png");