Typo ;)
[phpCairo.git] / testcases / phpCairo / extend-repeat.php
blob10f83476a92a3a0135a60c93aecf6559bdcb6320
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->create_from_png("romedalen.png");
6 $con->set_source_surface($s,32,32);
7 $pat = $con->get_source();
8 $pat->set_extend(EXTEND_REPEAT);
9 $con->set_source($pat);
10 $con->paint();
12 $sur->write_to_png("extend-repeat-php.png");