Changed the entire file structure to remove the .c includes from cairo.c
[phpCairo.git] / testcases / phpCairo / create-from-png.php
blobbab8e2313bbd8e72335ae7fc71821f6382bb3fc2
1 <?
2 $sur = new CairoImageSurface(FORMAT_ARGB32, 2, 2);
3 $con = new CairoContext($sur);
4 $s = new CairoImageSurface(FORMAT_ARGB32, 2, 2);
6 $s->createFromPng("create-from-png-ref.png");
7 $con->setSourceSurface($s);
8 $con->paint();
10 $sur->writeToPng("create-from-png-php.png");