Updating checkpoint ...
[phpCairo.git] / testcases / phpCairo / extend-repeat.php
blob71ae40e00630fa34b3c41bf57e99789c236b2f01
1 <?
2 $sur = new CairoImageSurface(FORMAT_ARGB32, 256 + 32*2, 192+ 32*2);
3 $con = new CairoContext($sur);
4 $s = new CairoImageSurface(FORMAT_ARGB32,100, 100);
5 $s->createFromPng("romedalen.png");
6 $con->setSourceSurface($s,32,32);
7 $pat = $con->getSource();
8 $pat->setExtend(EXTEND_REPEAT);
9 $con->setSource($pat);
10 $con->paint();
12 $sur->writeToPng("extend-repeat-php.png");