Changed the entire file structure to remove the .c includes from cairo.c
[phpCairo.git] / testcases / phpCairo / fill-and-stroke.php
blob45041d306cd6d883dcbeb1a18f97338e622ff9a2
1 <?
2 $sur = new CairoImageSurface(FORMAT_ARGB32, 28, 14);
3 $con = new CairoContext($sur);
4 $con->rectangle(2,2,10,10);
5 $con->setSourceRgb(0,0,1);
6 $con->fillPreserve();
7 $con->setSourceRgb(1,0,0);
8 $con->stroke();
10 $con->translate(14,0);
11 $con->arc(7, 7, 5, 0, 2*M_PI);
12 $con->fillPreserve();
13 $con->setSourceRgb(0,0,1);
14 $con->stroke();
16 $sur->writeToPng("fill-and-stroke-php.png");