Updating checkpoint ...
[phpCairo.git] / testcases / phpCairo / composite-integer-translate-over.php
blob7bf91c4ff0f227f5e6b543673a579e690fe49020
1 <?
2 $sur = new CairoImageSurface(FORMAT_ARGB32,100, 100);
3 $con = new CairoContext($sur);
5 $s = new CairoImageSurface(FORMAT_ARGB32,1,1);
6 $s->createFromPng("romedalen.png");
8 $con->setSourceRgb(0,0,0);
9 $con->rectangle(0,0,100,100);
10 $con->fill();
12 $con->translate(10,10);
13 $con->setOperator(OPERATOR_OVER);
14 $con->setSourceSurface($s,0,0);
15 $con->rectangle(0,0,90,90);
16 $con->fill();
17 $sur->writeToPng("composite-integer-translate-over-php.png");