hiphop-php /hphp/test/zend/good/ext/gd/tests/imagefill_1.php

Language PHP Lines 12
MD5 Hash f28f3c837c48a4fad0d8ac65a6ce0572 Estimated Cost $170 (why?)
Repository git://github.com/facebook/hiphop-php.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
<?php
$im = imagecreate(100,100);
$white = imagecolorallocate($im, 255,255,255);
$blue = imagecolorallocate($im, 0,0,255);
$green = imagecolorallocate($im, 0,255,0);

print_r(imagecolorat($im, 0,0));
imagefill($im, 0,0,$white + 3);
print_r(imagecolorat($im, 0,0));
imagedestroy($im);
?>
Back to Top