2 $sur = new CairoImageSurface(FORMAT_ARGB32
, 6, 6);
3 $con = new CairoContext($sur);
29 for($i=0; $i<2;$i++
) {
50 $con->setSourceRgb(0,0,0);
53 $s = new CairoImageSurface(FORMAT_ARGB32
, 100,100);
54 $s->createFromData($data, FORMAT_RGB24
, 4, 4, 16);
55 //$con->test_paint_checkered();
57 $con->setSourceSurface($s,4,4);
58 $pat = $con->getSource();
59 $pat->setFilter( FILTER_NEAREST
);
62 $sur->writeToPng("scale-down-source-surface-paint-php.png");