Added some test cases ....
[phpCairo.git] / testcases / phpCairo / extend-reflect.php
blobf5ad338d1438b2d2eb78822f97fc00eddd942b6c
1 <?
2 $sur = new CairoImageSurface(FORMAT_ARGB32, 256 + 32*2, 192 + 32*2);
3 $con = new CairoContext($sur);
5 $s = new CairoImageSurface(FORMAT_ARGB32,1,1);
6 $s->create_from_png("romedalen.png");
8 $con->set_source_surface($s,32,32);
10 $pat = $con->get_source();
11 $pat->set_extend(EXTEND_REFLECT);
12 $con->paint();
14 $sur->write_to_png("extend-reflect-php.png");