Changed the entire file structure to remove the .c includes from cairo.c
[phpCairo.git] / testcases / phpCairo / composite-integer-translate-source.php
blob51b748a59b50032be1497b7868817bd16f8e2f2c
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_SOURCE);
14 $con->setSourceSurface($s,0,0);
15 $con->rectangle(0,0,90,90);
16 $con->fill();
17 $sur->writeToPng("composite-integer-translate-source-php.png");