Examples updated to the latest Camel Case .. Was a pain converting them
[phpCairo.git] / testcases / phpCairo / create-from-png-stream.php
blob023420e3507f0b4ade794f401c4dafddc29cf6b2
1 <?
2 $sur = new CairoImageSurface(FORMAT_ARGB32, 2, 2);
3 $con = new CairoContext($sur);
4 $s = new CairoImageSurface(FORMAT_ARGB32, 2, 2);
5 $file = fopen("create-from-png-ref.png","r");
6 $s->createFromPngStream($file);
7 $con->setSourceSurface($s);
8 $con->paint();
10 $sur->writeToPng("create-from-png-stream-php.png");