2 $sur = new CairoImageSurface(FORMAT_ARGB32
, 36, 36);
3 $con = new CairoContext($sur);
4 $s = new CairoImageSurface(FORMAT_ARGB32
, 2, 2);
5 $con2 = new CairoContext($s);
6 $con2->setSourceRgb(1,0,0);
8 $con2->setSourceRgb(0,0,1);
9 $con2->rectangle(0,1,1,1);
10 $con2->rectangle(1,0,1,1);
12 $con->setSourceRgb(0,0,0);
17 $con->translate(0.5,0.5);
18 $con->setSourceSurface($s,0,0);
21 $sur->writeToPng("filter-bilinear-extents-php.png");