Annotation of embedaddon/php/ext/gd/tests/imageellipse_basic.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Testing imageellipse() of GD library
! 3: --CREDITS--
! 4: Ivan Rosolen <contato [at] ivanrosolen [dot] com>
! 5: #testfest PHPSP on 2009-06-20
! 6: --SKIPIF--
! 7: <?php
! 8: if (!extension_loaded("gd")) die("skip GD not present");
! 9: ?>
! 10: --FILE--
! 11: <?php
! 12:
! 13: // Create a image
! 14: $image = imagecreatetruecolor(400, 300);
! 15:
! 16: // Draw a white ellipse
! 17: imageellipse($image, 200, 150, 300, 200, 16777215);
! 18:
! 19: ob_start();
! 20: imagepng($image, null, 9);
! 21: $img = ob_get_contents();
! 22: ob_end_clean();
! 23:
! 24: echo md5(base64_encode($img));
! 25: ?>
! 26: --EXPECT--
! 27: d8b9bc2ca224bd68569413f4617f8e1f
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>