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);
7 $con->setSourceRgb(1,0,0);
10 $con->translate(14,0);
11 $con->arc(7, 7, 5, 0, 2*M_PI
);
13 $con->setSourceRgb(0,0,1);
16 $sur->writeToPng("fill-and-stroke-php.png");