Added some test cases ....
[phpCairo.git] / testcases / phpCairo / create-from-png-stream.php
blobcdd6c4ce194cd303a1c683eb6ef19f4602c55e82
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->create_from_png_stream($file);
7 $con->set_source_surface($s);
8 $con->paint();
10 $sur->write_to_png("create-from-png-stream-php.png");