2 $sur = new CairoImageSurface(FORMAT_RGB24
, 2, 2);
3 $con = new CairoContext($sur);
4 $s = new CairoImageSurface(FORMAT_RGB24
, 2, 2);
40 for($i =0 ; $i<4;$i++
)
42 $s ->createFromData($c[$i], FORMAT_RGB24
, 1 , 1, 4);
43 $con->setSourceSurface($s, $i%2
, $i/2);
48 $sur->writeToPng("move-to-show-surface-php.png");