Changed the entire file structure to remove the .c includes from cairo.c
[phpCairo.git] / testcases / phpCairo / rectangle-rounding-error.php
blobe80eb2dc3f69a831e8992edfa476f4459f2d492c
1 <?
2 $sur = new CairoImageSurface(FORMAT_ARGB32, 76,76);
3 $con = new CairoContext($sur);
5 $con->setSourceRgb ( 1, 1, 1);
6 $con->paint ();
7 $con->setAntialias (ANTIALIAS_NONE);
8 $con->setSourceRgb ( 0, 0, 0);
10 $con->translate( -300, -300);
11 $con->scale( 677.0/26, 677.0/26);
12 $con->translate( 1, 1);
13 $con->rectangle( 11, 11, 1, 1);
14 $con->rectangle( 11, 12, 1, 1);
15 $con->rectangle( 12, 11, 1, 1);
16 $con->rectangle( 12, 12, 1, 1);
17 $con->setSourceRgb( 0, 0, 0);
18 $con->fill();
20 $sur->writeToPng("rectangle-rounding-error-php.png");